|
||||||||||
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 | |
---|---|
java.util.List<java.util.Locale> |
getAcceptableLanguages()
Get a list of languages that are acceptable for the response. |
java.util.List<MediaType> |
getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response. |
java.util.Map<java.lang.String,Cookie> |
getCookies()
Get any cookies that accompanied the request. |
java.util.Locale |
getLanguage()
Get the language of the request entity |
MediaType |
getMediaType()
Get the media type of the request entity |
java.util.List<java.lang.String> |
getRequestHeader(java.lang.String name)
Get the values of a HTTP request header. |
MultivaluedMap<java.lang.String,java.lang.String> |
getRequestHeaders()
Get the values of HTTP request headers. |
Field Detail |
---|
static final java.lang.String ACCEPT
static final java.lang.String ACCEPT_CHARSET
static final java.lang.String ACCEPT_ENCODING
static final java.lang.String ACCEPT_LANGUAGE
static final java.lang.String AUTHORIZATION
static final java.lang.String CACHE_CONTROL
static final java.lang.String CONTENT_ENCODING
static final java.lang.String CONTENT_LANGUAGE
static final java.lang.String CONTENT_LENGTH
static final java.lang.String CONTENT_LOCATION
static final java.lang.String CONTENT_TYPE
static final java.lang.String DATE
static final java.lang.String ETAG
static final java.lang.String EXPIRES
static final java.lang.String HOST
static final java.lang.String IF_MATCH
static final java.lang.String IF_MODIFIED_SINCE
static final java.lang.String IF_NONE_MATCH
static final java.lang.String IF_UNMODIFIED_SINCE
static final java.lang.String LAST_MODIFIED
static final java.lang.String LOCATION
static final java.lang.String USER_AGENT
static final java.lang.String VARY
static final java.lang.String WWW_AUTHENTICATE
static final java.lang.String COOKIE
static final java.lang.String SET_COOKIE
Method Detail |
---|
java.util.List<java.lang.String> getRequestHeader(java.lang.String name)
getRequestHeaders().get(name)
.
name
- the header name, case insensitive
java.lang.IllegalStateException
- if called outside the scope of a requestMultivaluedMap<java.lang.String,java.lang.String> getRequestHeaders()
java.lang.IllegalStateException
- if called outside the scope of a requestjava.util.List<MediaType> getAcceptableMediaTypes()
java.lang.IllegalStateException
- if called outside the scope of a requestjava.util.List<java.util.Locale> getAcceptableLanguages()
java.lang.IllegalStateException
- if called outside the scope of a requestMediaType getMediaType()
java.lang.IllegalStateException
- if called outside the scope of a requestjava.util.Locale getLanguage()
java.lang.IllegalStateException
- if called outside the scope of a requestjava.util.Map<java.lang.String,Cookie> getCookies()
java.lang.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 |