| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public List | Returns: a read-only list of acceptable languages sorted according to their q-value, with highest preference first.Get a list of languages that are acceptable for the response. |
| public List | Returns: a read-only list of requested response media types sorted according to their q-value, with highest preference first.Get a list of media types that are acceptable for the response. |
| public Map | Returns: a read-only map of cookie name (String) toCookie.Get any cookies that accompanied the request. |
| public Date | |
| public InputStream | |
| public MultivaluedMap | Returns: mutable multivalued map of request headers.Get the mutable request headers multivalued map. |
| public String | Returns: the message header value. If the message header is not present thennull is returned. If the message header is present but has no
value then the empty string is returned. If the message header is present
more than once then the values of joined together and separated by a ','
character.the message header. name)Get a message header as a single string value. |
| public Locale | Returns: the language of the entity ornull if not specifiedGet the language of the entity. |
| public int | Returns: Content-Length as integer if present and valid number. In other cases returns-1.Get Content-Length value. |
| public MediaType | Returns: the media type ornull if not specified (e.g. there's no
request entity).Get the media type of the entity. |
| public String | |
| public Object | Returns: anObject containing the value of the property, or
null if no property exists matching the given name.a name)String specifying the name of the property.Returns the property with the given name registered in the current request/response
exchange context, or |
| public Collection | Returns: an immutablecollection of property names.Returns an immutable |
| public Request | |
| public SecurityContext | Returns: injectable request security context information.Get the injectable security context information for the current request. |
| public UriInfo | |
| public boolean | Returns: true if there is an entity present in the message,
false otherwise.Check if there is a non-empty entity input stream available in the request message. |
| public void | removeProperty(String
a name)String specifying the name of the property to be removed.Removes a property with the given name from the current request/response exchange context. |
| public void | |
| public void | |
| public void | setProperty(String
a name, Object String specifying the name of the property.an object)Object representing the property to be bound.Binds an object to a given property name in the current request/response exchange context. |
| public void | setRequestUri(URI
new URI of the request. requestUri)Set a new request URI using the current base URI of the application to resolve the application-specific request URI part. |
| public void | setRequestUri(URI
base URI that will be used to resolve the application-specific
part of the request URI. baseUri, URI new URI of the request. requestUri)Set a new request URI using a new base URI to resolve the application-specific request URI part. |
| public void | setSecurityContext(SecurityContext
new injectable request security context information. context)Set a new injectable security context information for the current request. |
| abortWith | back to summary |
|---|---|
| public void abortWith(Response response) Abort the filter chain with a response. This method breaks the filter chain processing and returns the provided response back to the client. The provided response goes through the chain of applicable response filters.
| |
| getAcceptableLanguages | back to summary |
|---|---|
| public List Get a list of languages that are acceptable for the response. | |
| getAcceptableMediaTypes | back to summary |
|---|---|
| public List Get a list of media types that are acceptable for the response. | |
| getCookies | back to summary |
|---|---|
| public Map Get any cookies that accompanied the request. | |
| getDate | back to summary |
|---|---|
| public Date getDate() Get message date.
| |
| getEntityStream | back to summary |
|---|---|
| public InputStream getEntityStream() Get the entity input stream. The JAX-RS runtime is responsible for closing the input stream.
| |
| getHeaders | back to summary |
|---|---|
| public MultivaluedMap Get the mutable request headers multivalued map.
| |
| getHeaderString | back to summary |
|---|---|
| public String getHeaderString(String name) Get a message header as a single string value.
| |
| getLanguage | back to summary |
|---|---|
| public Locale getLanguage() Get the language of the entity.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Get Content-Length value.
| |
| getMediaType | back to summary |
|---|---|
| public MediaType getMediaType() Get the media type of the entity.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Get the request method.
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Returns the property with the given name registered in the current request/response
exchange context, or A property allows a JAX-RS filters and interceptors to exchange additional custom information not already provided by this interface.
A list of supported properties can be retrieved using
In a Servlet container, the properties are synchronized with the
| |
| getPropertyNames | back to summary |
|---|---|
| public Collection Returns an immutable
Use the
In a Servlet container, the properties are synchronized with the
| |
| getRequest | back to summary |
|---|---|
| public Request getRequest() Get the injectable request information.
| |
| getSecurityContext | back to summary |
|---|---|
| public SecurityContext getSecurityContext() Get the injectable security context information for the current request.
The
| |
| getUriInfo | back to summary |
|---|---|
| public UriInfo getUriInfo() Get request URI information.
The returned object contains "live" view of the request URI information in
a sense that any changes made to the request URI using one of the
| |
| hasEntity | back to summary |
|---|---|
| public boolean hasEntity() Check if there is a non-empty entity input stream available in the request
message.
The method returns
| |
| removeProperty | back to summary |
|---|---|
| public void removeProperty(String name) Removes a property with the given name from the current request/response
exchange context. After removal, subsequent calls to
In a Servlet container, the properties are synchronized with the
| |
| setEntityStream | back to summary |
|---|---|
| public void setEntityStream(InputStream input) Set a new entity input stream. The JAX-RS runtime is responsible for closing the input stream.
| |
| setMethod | back to summary |
|---|---|
| public void setMethod(String method) Set the request method.
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String name, Object object) Binds an object to a given property name in the current request/response exchange context. If the name specified is already used for a property, this method will replace the value of the property with the new value. A property allows a JAX-RS filters and interceptors to exchange additional custom information not already provided by this interface.
A list of supported properties can be retrieved using
If a
In a Servlet container, the properties are synchronized with the | |
| setRequestUri | back to summary |
|---|---|
| public void setRequestUri(URI requestUri) Set a new request URI using the current base URI of the application to resolve the application-specific request URI part.
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an
| |
| setRequestUri | back to summary |
|---|---|
| public void setRequestUri(URI baseUri, URI requestUri) Set a new request URI using a new base URI to resolve the application-specific request URI part.
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an
| |
| setSecurityContext | back to summary |
|---|---|
| public void setSecurityContext(SecurityContext context) Set a new injectable security context information for the current request.
The
| |