java.lang.IllegalStateException if called outside the
scope of a request (e.g. from a provider constructor).
Context
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | LAST_EVENT_ID_HEADER
|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: a read-only list of acceptable languages sorted according to their q-value, with highest preference first.Get a list of languages that are acceptable for the response. |
| public List | Returns: a read-only list of requested response media types sorted according to their q-value, with highest preference first.Get a list of media types that are acceptable for the response. |
| public Map | Returns: a read-only map of cookie name (String) to Cookie.Get any cookies that accompanied the request. |
| public Date | |
| public String | Returns: the HTTP header value. If the HTTP header is not present thennull is returned. If the HTTP header is present but has no
value then the empty string is returned. If the HTTP header is present
more than once then the values of joined together and separated by a ','
character.the HTTP header. name)Get a HTTP header as a single string value. |
| public Locale | Returns: the language of the entity ornull if not specified.Get the language of the request entity. |
| public int | Returns: Content-Length as integer if present and valid number. In other cases returns -1.Get Content-Length value. |
| public MediaType | Returns: the media type ornull if there is no request entity.Get the media type of the request entity. |
| public List | Returns: a read-only list of header values.the header name, case insensitive. name)Get the values of a HTTP request header. |
| public MultivaluedMap | Returns: a read-only map of header names and values.Get the values of HTTP request headers. |
| ACCEPT | back to summary |
|---|---|
| public static final String ACCEPT See | |
| ACCEPT_CHARSET | back to summary |
|---|---|
| public static final String ACCEPT_CHARSET See | |
| ACCEPT_ENCODING | back to summary |
|---|---|
| public static final String ACCEPT_ENCODING See | |
| ACCEPT_LANGUAGE | back to summary |
|---|---|
| public static final String ACCEPT_LANGUAGE See | |
| ALLOW | back to summary |
|---|---|
| public static final String ALLOW See | |
| AUTHORIZATION | back to summary |
|---|---|
| public static final String AUTHORIZATION See | |
| CACHE_CONTROL | back to summary |
|---|---|
| public static final String CACHE_CONTROL See | |
| CONTENT_DISPOSITION | back to summary |
|---|---|
| public static final String CONTENT_DISPOSITION See | |
| CONTENT_ENCODING | back to summary |
|---|---|
| public static final String CONTENT_ENCODING See | |
| CONTENT_ID | back to summary |
|---|---|
| public static final String CONTENT_ID See | |
| CONTENT_LANGUAGE | back to summary |
|---|---|
| public static final String CONTENT_LANGUAGE See | |
| CONTENT_LENGTH | back to summary |
|---|---|
| public static final String CONTENT_LENGTH See | |
| CONTENT_LOCATION | back to summary |
|---|---|
| public static final String CONTENT_LOCATION See | |
| CONTENT_TYPE | back to summary |
|---|---|
| public static final String CONTENT_TYPE See | |
| COOKIE | back to summary |
|---|---|
| public static final String COOKIE See | |
| DATE | back to summary |
|---|---|
| public static final String DATE See | |
| ETAG | back to summary |
|---|---|
| public static final String ETAG See | |
| EXPIRES | back to summary |
|---|---|
| public static final String EXPIRES See | |
| HOST | back to summary |
|---|---|
| public static final String HOST See | |
| IF_MATCH | back to summary |
|---|---|
| public static final String IF_MATCH See | |
| IF_MODIFIED_SINCE | back to summary |
|---|---|
| public static final String IF_MODIFIED_SINCE See | |
| IF_NONE_MATCH | back to summary |
|---|---|
| public static final String IF_NONE_MATCH See | |
| IF_UNMODIFIED_SINCE | back to summary |
|---|---|
| public static final String IF_UNMODIFIED_SINCE See | |
| LAST_EVENT_ID_HEADER | back to summary |
|---|---|
| public static final String LAST_EVENT_ID_HEADER
| |
| LAST_MODIFIED | back to summary |
|---|---|
| public static final String LAST_MODIFIED See | |
| LINK | back to summary |
|---|---|
| public static final String LINK See | |
| LOCATION | back to summary |
|---|---|
| public static final String LOCATION See | |
| RETRY_AFTER | back to summary |
|---|---|
| public static final String RETRY_AFTER See | |
| SET_COOKIE | back to summary |
|---|---|
| public static final String SET_COOKIE See | |
| USER_AGENT | back to summary |
|---|---|
| public static final String USER_AGENT See | |
| VARY | back to summary |
|---|---|
| public static final String VARY See | |
| WWW_AUTHENTICATE | back to summary |
|---|---|
| public static final String WWW_AUTHENTICATE See | |
| getAcceptableLanguages | back to summary |
|---|---|
| public List Get a list of languages that are acceptable for the response.
If no acceptable languages are specified, a read-only list containing
a single wildcard
| |
| getAcceptableMediaTypes | back to summary |
|---|---|
| public List Get a list of media types that are acceptable for the response.
If no acceptable media types are specified, a read-only list containing
a single
| |
| getCookies | back to summary |
|---|---|
| public Map Get any cookies that accompanied the request.
| |
| getDate | back to summary |
|---|---|
| public Date getDate() Get message date.
| |
| getHeaderString | back to summary |
|---|---|
| public String getHeaderString(String name) Get a HTTP header as a single string value.
Each single header value is converted to String using a
| |
| getLanguage | back to summary |
|---|---|
| public Locale getLanguage() Get the language of the request entity.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Get Content-Length value.
| |
| getMediaType | back to summary |
|---|---|
| public MediaType getMediaType() Get the media type of the request entity.
| |
| getRequestHeader | back to summary |
|---|---|
| public List Get the values of a HTTP request header. The returned List is read-only.
This is a shortcut for
| |
| getRequestHeaders | back to summary |
|---|---|
| public MultivaluedMap Get the values of HTTP request headers. The returned Map is case-insensitive
wrt. keys and is read-only. The method never returns
| |