public static class Results.StatusHeader extends java.lang.Object implements Result
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_RANGES, ACCESS_CONTROL_ALLOW_CREDENTIALS, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, ACCESS_CONTROL_MAX_AGE, ACCESS_CONTROL_REQUEST_HEADERS, ACCESS_CONTROL_REQUEST_METHOD, AGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONNECTION, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, COOKIE, DATE, ETAG, EXPECT, EXPIRES, FORWARDED, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LOCATION, MAX_FORWARDS, ORIGIN, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, RETRY_AFTER, SERVER, SET_COOKIE, SET_COOKIE2, TE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, WARNING, WWW_AUTHENTICATE, X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PORT, X_FORWARDED_PROTO, X_REQUESTED_WITH
Constructor and Description |
---|
StatusHeader(play.api.mvc.Results.Status wrappedStatus) |
Modifier and Type | Method and Description |
---|---|
Results.Status |
sendPath(java.nio.file.Path path)
Sends the given path.
|
Results.Status |
sendPath(java.nio.file.Path path,
boolean inline)
Sends the given path.
|
Results.Status |
sendPath(java.nio.file.Path path,
boolean inline,
java.lang.String filename)
Sends the given path.
|
Results.Status |
sendPath(java.nio.file.Path path,
int chunkSize)
Sends the given path using chunked transfer encoding.
|
Results.Status |
sendResource(java.lang.String resourceName)
Send the given resource.
|
Results.Status |
sendResource(java.lang.String resourceName,
boolean inline)
Send the given resource.
|
Results.Status |
sendResource(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Send the given resource from the given classloader.
|
Results.Status |
sendResource(java.lang.String resourceName,
java.lang.ClassLoader classLoader,
boolean inline)
Send the given resource from the given classloader.
|
play.api.mvc.Result |
toScala()
Retrieves the real (Scala-based) result.
|
public Results.Status sendResource(java.lang.String resourceName)
resourceName
- The path of the resource to load.public Results.Status sendResource(java.lang.String resourceName, java.lang.ClassLoader classLoader)
resourceName
- The path of the resource to load.classLoader
- The classloader to load it from.public Results.Status sendResource(java.lang.String resourceName, boolean inline)
resourceName
- The path of the resource to load.inline
- Whether it should be served as an inline file, or as an attachment.public Results.Status sendResource(java.lang.String resourceName, java.lang.ClassLoader classLoader, boolean inline)
resourceName
- The path of the resource to load.classLoader
- The classloader to load it from.inline
- Whether it should be served as an inline file, or as an attachment.public Results.Status sendPath(java.nio.file.Path path)
path
- The path to send.public Results.Status sendPath(java.nio.file.Path path, boolean inline)
path
- The path to send.inline
- Whether it should be served as an inline file, or as an attachment.public Results.Status sendPath(java.nio.file.Path path, boolean inline, java.lang.String filename)
path
- The path to send.inline
- Whether it should be served as an inline file, or as an attachment.filename
- The file name of the path.public Results.Status sendPath(java.nio.file.Path path, int chunkSize)
path
- The path to send.chunkSize
- Length of chunk.