|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpHeaders
An injectable interface that provides access to HTTP header information. All methods throw java.lang.IllegalStateException if called outside the scope of a request (e.g. from a provider constructor).
Context
Method Summary | |
---|---|
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. |
Field Detail |
---|
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
Method Detail |
---|
List<String> getRequestHeader(String name)
getRequestHeaders().get(name)
.
name
- the header name, case insensitive
IllegalStateException
- 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 request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |