public static interface Http.RequestHeader
Modifier and Type | Method and Description |
---|---|
play.api.mvc.RequestHeader |
_underlyingHeader()
For internal Play-use only
|
java.util.List<play.api.http.MediaRange> |
acceptedTypes() |
java.util.List<Lang> |
acceptLanguages()
The Request Langs extracted from the Accept-Language header and sorted by preference (preferred first).
|
boolean |
accepts(java.lang.String mimeType)
Check if this request accepts a given media type.
|
Http.Cookie |
cookie(java.lang.String name) |
Http.Cookies |
cookies() |
java.lang.String |
getHeader(java.lang.String headerName)
Retrieves a single header.
|
java.lang.String |
getQueryString(java.lang.String key)
Helper method to access a queryString parameter.
|
boolean |
hasHeader(java.lang.String headerName)
Checks if the request has the header.
|
java.util.Map<java.lang.String,java.lang.String[]> |
headers()
Retrieves all headers.
|
java.lang.String |
host()
The request host.
|
java.lang.String |
method()
The HTTP Method.
|
java.lang.String |
path()
The URI path.
|
java.util.Map<java.lang.String,java.lang.String[]> |
queryString()
The query string content.
|
java.lang.String |
remoteAddress()
The client IP address.
|
boolean |
secure()
Is the client using SSL?
|
java.lang.String |
uri()
The complete request URI, containing both path and query string.
|
java.lang.String |
version()
The HTTP version.
|
java.lang.String uri()
java.lang.String method()
java.lang.String version()
java.lang.String remoteAddress()
boolean secure()
java.lang.String host()
java.lang.String path()
java.util.List<Lang> acceptLanguages()
java.util.List<play.api.http.MediaRange> acceptedTypes()
boolean accepts(java.lang.String mimeType)
mimeType
is in the Accept header, otherwise falsejava.util.Map<java.lang.String,java.lang.String[]> queryString()
java.lang.String getQueryString(java.lang.String key)
Http.Cookies cookies()
Http.Cookie cookie(java.lang.String name)
name
- Name of the cookie to retrievejava.util.Map<java.lang.String,java.lang.String[]> headers()
java.lang.String getHeader(java.lang.String headerName)
headerName
- The name of the header (case-insensitive).boolean hasHeader(java.lang.String headerName)
headerName
- The name of the header (case-insensitive).play.api.mvc.RequestHeader _underlyingHeader()