public interface HttpHeaders
Context
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPT
|
static String |
ACCEPT_CHARSET
|
static String |
ACCEPT_ENCODING
|
static String |
ACCEPT_LANGUAGE
|
static String |
AUTHORIZATION
|
static String |
CACHE_CONTROL
|
static String |
CONTENT_ENCODING
|
static String |
CONTENT_LANGUAGE
|
static String |
CONTENT_LENGTH
|
static String |
CONTENT_LOCATION
|
static String |
CONTENT_TYPE
|
static String |
COOKIE
See IETF RFC 2109.
|
static String |
DATE
|
static String |
ETAG
|
static String |
EXPIRES
|
static String |
HOST
|
static String |
IF_MATCH
|
static String |
IF_MODIFIED_SINCE
|
static String |
IF_NONE_MATCH
|
static String |
IF_UNMODIFIED_SINCE
|
static String |
LAST_MODIFIED
|
static String |
LOCATION
|
static String |
SET_COOKIE
See IETF RFC 2109.
|
static String |
USER_AGENT
|
static String |
VARY
|
static String |
WWW_AUTHENTICATE
|
Modifier and Type | Method and Description |
---|---|
List<Locale> |
getAcceptableLanguages()
Get a list of languages that are acceptable for the response.
|
List<MediaType> |
getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response.
|
Map<String,Cookie> |
getCookies()
Get any cookies that accompanied the request.
|
Locale |
getLanguage()
Get the language of the request entity
|
MediaType |
getMediaType()
Get the media type of the request entity
|
List<String> |
getRequestHeader(String name)
Get the values of a HTTP request header.
|
MultivaluedMap<String,String> |
getRequestHeaders()
Get the values of HTTP request headers.
|
static final String ACCEPT
static final String ACCEPT_CHARSET
static final String ACCEPT_ENCODING
static final String ACCEPT_LANGUAGE
static final String AUTHORIZATION
static final String CACHE_CONTROL
static final String CONTENT_ENCODING
static final String CONTENT_LANGUAGE
static final String CONTENT_LENGTH
static final String CONTENT_LOCATION
static final String CONTENT_TYPE
static final String DATE
static final String ETAG
static final String EXPIRES
static final String HOST
static final String IF_MATCH
static final String IF_MODIFIED_SINCE
static final String IF_NONE_MATCH
static final String IF_UNMODIFIED_SINCE
static final String LAST_MODIFIED
static final String LOCATION
static final String USER_AGENT
static final String VARY
static final String WWW_AUTHENTICATE
static final String COOKIE
static final String SET_COOKIE
List<String> getRequestHeader(String name)
getRequestHeaders().get(name)
.name
- the header name, case insensitiveIllegalStateException
- if called outside the scope of a requestMultivaluedMap<String,String> getRequestHeaders()
IllegalStateException
- if called outside the scope of a requestList<MediaType> getAcceptableMediaTypes()
IllegalStateException
- if called outside the scope of a requestList<Locale> getAcceptableLanguages()
IllegalStateException
- if called outside the scope of a requestMediaType getMediaType()
IllegalStateException
- if called outside the scope of a requestLocale getLanguage()
IllegalStateException
- if called outside the scope of a requestMap<String,Cookie> getCookies()
IllegalStateException
- if called outside the scope of a requestCopyright © 2012 JBoss by Red Hat. All Rights Reserved.