|
||||||||||
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<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.lang.String |
getLanguage()
Get the language of the request entity |
MediaType |
getMediaType()
Get the media type of the request entity |
MultivaluedMap<java.lang.String,java.lang.String> |
getRequestHeaders()
Get the values of HTTP request headers. |
Method Detail |
---|
MultivaluedMap<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 requestMediaType getMediaType()
java.lang.IllegalStateException
- if called outside the scope of a requestjava.lang.String 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 |