org.glassfish.jersey.client.filter
Class EncodingFilter
java.lang.Object
org.glassfish.jersey.client.filter.EncodingFilter
- All Implemented Interfaces:
- ClientRequestFilter
public final class EncodingFilter
- extends Object
- implements ClientRequestFilter
Client filter adding support for content encoding. The filter adds
list of supported encodings to the Accept-Header values.
Supported encodings are determined by looking
up all the ContentEncoder implementations registered in the corresponding
client configuration.
If ClientProperties.USE_ENCODING client property is set, the filter will add Content-Encoding header with
the value of the property, unless Content-Encoding header has already been set.
- Author:
- Martin Matula (martin.matula at oracle.com)
|
Method Summary |
void |
filter(ClientRequestContext request)
Filter method called before a request has been dispatched to a client
transport layer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncodingFilter
public EncodingFilter()
filter
public void filter(ClientRequestContext request)
throws IOException
- Description copied from interface:
ClientRequestFilter
- Filter method called before a request has been dispatched to a client
transport layer.
Filters in the filter chain are ordered according to their
javax.annotation.Priority
class-level annotation value.
- Specified by:
filter in interface ClientRequestFilter
- Parameters:
request - request context.
- Throws:
IOException - if an I/O exception occurs.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.