public static class Results.Status 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 |
---|
Status(play.api.mvc.Result wrappedResult) |
Status(play.api.mvc.Results.Status status,
byte[] content) |
Status(play.api.mvc.Results.Status status,
play.twirl.api.Content content,
play.api.mvc.Codec codec) |
Status(play.api.mvc.Results.Status status,
java.io.File content) |
Status(play.api.mvc.Results.Status status,
java.io.File content,
boolean inline) |
Status(play.api.mvc.Results.Status status,
java.io.File content,
boolean inline,
java.lang.String filename) |
Status(play.api.mvc.Results.Status status,
java.io.File content,
int chunkSize) |
Status(play.api.mvc.Results.Status status,
java.io.InputStream content,
int chunkSize) |
Status(play.api.mvc.Results.Status status,
com.fasterxml.jackson.databind.JsonNode content,
play.api.mvc.Codec codec) |
Status(play.api.mvc.Results.Status status,
Results.Chunks<A> chunks) |
Status(play.api.mvc.Results.Status status,
java.lang.String content,
play.api.mvc.Codec codec) |
Modifier and Type | Method and Description |
---|---|
Results.Status |
as(java.lang.String contentType)
Change the Content-Type header for this result.
|
play.api.mvc.Result |
toScala()
Retrieves the real (Scala-based) result.
|
java.lang.String |
toString() |
public Status(play.api.mvc.Result wrappedResult)
public Status(play.api.mvc.Results.Status status, java.lang.String content, play.api.mvc.Codec codec)
public Status(play.api.mvc.Results.Status status, com.fasterxml.jackson.databind.JsonNode content, play.api.mvc.Codec codec)
public Status(play.api.mvc.Results.Status status, play.twirl.api.Content content, play.api.mvc.Codec codec)
public Status(play.api.mvc.Results.Status status, Results.Chunks<A> chunks)
public Status(play.api.mvc.Results.Status status, byte[] content)
public Status(play.api.mvc.Results.Status status, java.io.File content)
public Status(play.api.mvc.Results.Status status, java.io.File content, boolean inline)
public Status(play.api.mvc.Results.Status status, java.io.File content, boolean inline, java.lang.String filename)
public Status(play.api.mvc.Results.Status status, java.io.File content, int chunkSize)
public Status(play.api.mvc.Results.Status status, java.io.InputStream content, int chunkSize)
public play.api.mvc.Result toScala()
Result
public Results.Status as(java.lang.String contentType)
public java.lang.String toString()
toString
in class java.lang.Object