public interface Result extends Http.HeaderNames
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
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
charset()
Extracts the Charset of this Result value.
|
default java.lang.String |
contentType()
Extracts the Content-Type of this Result value.
|
default Http.Cookie |
cookie(java.lang.String name)
Extracts a Cookie value from this Result value
|
default Http.Cookies |
cookies()
Extracts the Cookies (an iterator) from this result value.
|
default Http.Flash |
flash()
Extracts the Flash values of this Result value.
|
default java.lang.String |
header(java.lang.String header)
Extracts an Header value of this Result value.
|
default java.util.Map<java.lang.String,java.lang.String> |
headers()
Extracts all Headers of this Result value.
|
default java.lang.String |
redirectLocation()
Extracts the Location header of this Result value if this Result is a Redirect.
|
default Http.Session |
session()
Extracts the Session of this Result value.
|
default int |
status()
Extracts the Status code of this Result value.
|
play.api.mvc.Result |
toScala()
Retrieves the real (Scala-based) result.
|
play.api.mvc.Result toScala()
default int status()
default java.lang.String redirectLocation()
default java.lang.String header(java.lang.String header)
default java.util.Map<java.lang.String,java.lang.String> headers()
default java.lang.String contentType()
default java.lang.String charset()
default Http.Flash flash()
default Http.Session session()
default Http.Cookie cookie(java.lang.String name)
default Http.Cookies cookies()