| 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 Client | Returns: client instance associated with the request.Get the client instance associated with the request. |
| public Configuration | Returns: immutable request configuration.Get the immutable configuration of the request. |
| public Map | Returns: a read-only map of cookie name (String) toCookie.Get any cookies that accompanied the request. |
| public Date | |
| public Object | Returns: the message entity ornull if message does not contain an entity body.Get the message entity Java instance. |
| public Annotation[] | Returns: annotations attached to the entity instance.Get the annotations attached to the entity instance. |
| public Class | |
| public OutputStream | |
| public Type | |
| 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 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 MultivaluedMap | Returns: response headers as a string view of header values.Get a string view of header values associated with the message. |
| public URI | |
| public boolean | Returns: true if there is an entity present in the message, false otherwise.Check if there is an entity available in the request. |
| public default boolean | Returns: true if this property is registered in the context, or false if no property exists matching
the given name.a name)String specifying the name of the property.Returns |
| 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 | setEntity(final Object
entity object. entity, final Annotation[] annotations attached to the entity instance. annotations, final MediaType entity media type. mediaType)Set a new message entity, including the attached annotations and the media type. |
| 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 |
| 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. | |
| getClient | back to summary |
|---|---|
| public Client getClient() Get the client instance associated with the request.
| |
| getConfiguration | back to summary |
|---|---|
| public Configuration getConfiguration() Get the immutable configuration of the request.
| |
| getCookies | back to summary |
|---|---|
| public Map Get any cookies that accompanied the request. | |
| getDate | back to summary |
|---|---|
| public Date getDate() Get message date.
| |
| getEntity | back to summary |
|---|---|
| public Object getEntity() Get the message entity Java instance.
Returns
| |
| getEntityAnnotations | back to summary |
|---|---|
| public Annotation[] getEntityAnnotations() Get the annotations attached to the entity instance.
Note that the returned annotations array contains only those annotations explicitly attached to entity instance (such
as the ones attached using
| |
| getEntityClass | back to summary |
|---|---|
| public Class Get the raw entity type information.
| |
| getEntityStream | back to summary |
|---|---|
| public OutputStream getEntityStream() Get the entity output stream. The JAX-RS runtime is responsible for closing the output stream.
| |
| getEntityType | back to summary |
|---|---|
| public Type getEntityType() Get the generic entity type information.
| |
| 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.
Each single header value is converted to String using a
| |
| getLanguage | back to summary |
|---|---|
| public Locale getLanguage() Get the language of the entity.
| |
| 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
| |
| getPropertyNames | back to summary |
|---|---|
| public Collection Returns an immutable
Use the
| |
| getStringHeaders | back to summary |
|---|---|
| public MultivaluedMap Get a string view of header values associated with the message.
Changes in the underlying
The method converts the non-string header values to strings using a
| |
| getUri | back to summary |
|---|---|
| public URI getUri() Get the request URI.
| |
| hasEntity | back to summary |
|---|---|
| public boolean hasEntity() Check if there is an entity available in the request.
The method returns
| |
| hasProperty | back to summary |
|---|---|
| public default boolean hasProperty(String name) Returns
Use the
| |
| 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
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final Object entity) Set a new message entity. The existing entity
It is the callers responsibility to wrap the actual entity with
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final Object entity, final Annotation[] annotations, final MediaType mediaType) Set a new message entity, including the attached annotations and the media type.
It is the callers responsibility to wrap the actual entity with
| |
| setEntityStream | back to summary |
|---|---|
| public void setEntityStream(OutputStream outputStream) Set a new entity output stream. The JAX-RS runtime is responsible for closing the output stream.
| |
| setMethod | back to summary |
|---|---|
| public void setMethod(String method) Set the request method.
| |
| 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 | |
| setUri | back to summary |
|---|---|
| public void setUri(URI uri) Set a new request URI.
| |