|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.inject.HttpHeadersInjectee
public class HttpHeadersInjectee
Proxiable wrapper for request scoped HttpHeaders instance.
| Field Summary |
|---|
| Fields inherited from interface javax.ws.rs.core.HttpHeaders |
|---|
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_ID, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_TYPE, COOKIE, DATE, ETAG, EXPIRES, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LINK, LOCATION, RETRY_AFTER, SET_COOKIE, USER_AGENT, VARY, WWW_AUTHENTICATE |
| Constructor Summary | |
|---|---|
HttpHeadersInjectee()
|
|
| 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.Date |
getDate()
Get message date. |
java.lang.String |
getHeaderString(java.lang.String name)
Get a HTTP header as a single string value. |
java.util.Locale |
getLanguage()
Get the language of the request entity. |
int |
getLength()
Get Content-Length value. |
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. |
void |
set(HttpHeaders httpHeaders)
Set wrapped instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpHeadersInjectee()
| Method Detail |
|---|
public void set(HttpHeaders httpHeaders)
httpHeaders - actual HttpHeaders instance.public java.util.List<java.lang.String> getRequestHeader(java.lang.String name)
HttpHeadersgetRequestHeaders().get(name).
getRequestHeader in interface HttpHeadersname - the header name, case insensitive.
public java.lang.String getHeaderString(java.lang.String name)
HttpHeadersRuntimeDelegate.HeaderDelegate if one is available
via RuntimeDelegate.createHeaderDelegate(java.lang.Class)
for the header value class or using its toString method if a header
delegate is not available.
getHeaderString in interface HttpHeadersname - the HTTP header.
null 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.HttpHeaders.getRequestHeader(java.lang.String)public MultivaluedMap<java.lang.String,java.lang.String> getRequestHeaders()
HttpHeadersnull.
getRequestHeaders in interface HttpHeaderspublic java.util.List<MediaType> getAcceptableMediaTypes()
HttpHeaderswildcard media type
instance is returned.
getAcceptableMediaTypes in interface HttpHeaderspublic java.util.List<java.util.Locale> getAcceptableLanguages()
HttpHeadersLocale instance (with language field
set to "*") is returned.
getAcceptableLanguages in interface HttpHeaderspublic MediaType getMediaType()
HttpHeaders
getMediaType in interface HttpHeadersnull if there is no request entity.public java.util.Locale getLanguage()
HttpHeaders
getLanguage in interface HttpHeadersnull if not specified.public java.util.Map<java.lang.String,Cookie> getCookies()
HttpHeaders
getCookies in interface HttpHeaderspublic java.util.Date getDate()
HttpHeaders
getDate in interface HttpHeadersnull if not present.public int getLength()
HttpHeaders
getLength in interface HttpHeaders
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||