public abstract static class Http.RequestHeader
extends java.lang.Object
Constructor and Description |
---|
Http.RequestHeader() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.lang.String> |
accept() |
abstract java.util.List<Lang> |
acceptLanguages()
The Request Langs, extracted from the Accept-Language header.
|
abstract boolean |
accepts(java.lang.String mediaType)
Check if this request accepts a given media type.
|
abstract Http.Cookies |
cookies() |
java.lang.String |
getHeader(java.lang.String headerName)
Retrieves a single header.
|
abstract java.util.Map<java.lang.String,java.lang.String[]> |
headers()
Retrieves all headers.
|
abstract java.lang.String |
host()
The request host.
|
abstract java.lang.String |
method()
The HTTP Method.
|
abstract java.lang.String |
path()
The URI path.
|
abstract java.util.Map<java.lang.String,java.lang.String[]> |
queryString()
The query string content.
|
abstract java.lang.String |
remoteAddress()
The client IP address.
|
abstract java.lang.String |
uri()
The complete request URI, containing both path and query string.
|
public abstract java.lang.String uri()
public abstract java.lang.String method()
public abstract java.lang.String remoteAddress()
public abstract java.lang.String host()
public abstract java.lang.String path()
public abstract java.util.List<Lang> acceptLanguages()
public abstract java.util.List<java.lang.String> accept()
public abstract boolean accepts(java.lang.String mediaType)
public abstract java.util.Map<java.lang.String,java.lang.String[]> queryString()
public abstract Http.Cookies cookies()
public abstract java.util.Map<java.lang.String,java.lang.String[]> headers()
public java.lang.String getHeader(java.lang.String headerName)