Package play.server
Class ServerHelper
java.lang.Object
play.server.ServerHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilegenerateErrorResponse(Http.Request request, String format, Exception e) generateNotFoundResponse(Http.Request request, String format, NotFound e) getContentTypeValue(Http.Response response) booleanisKeepAlive(String protocol, String connectionHeader) booleanisModified(String eTag, long last, String ifNoneMatch, String ifModifiedSince) static intmaxContentLength(int defaultValue) relativeUrl(String path, String query)
-
Field Details
-
SERVER_HELPER_FIND_FILE_TMP_PATH_PREFIX
- See Also:
-
-
Constructor Details
-
ServerHelper
public ServerHelper()
-
-
Method Details
-
maxContentLength
@CheckReturnValue public static int maxContentLength(int defaultValue) -
isKeepAlive
-
isModified
-
generateNotFoundResponse
@Nonnull @CheckReturnValue public String generateNotFoundResponse(Http.Request request, String format, NotFound e) -
generateErrorResponse
@Nonnull @CheckReturnValue public String generateErrorResponse(Http.Request request, String format, Exception e) -
getContentTypeValue
-
findFile
-
relativeUrl
-