Class EncodingFilter
- java.lang.Object
-
- org.glassfish.jersey.client.filter.EncodingFilter
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter
public final class EncodingFilter extends java.lang.Object implements javax.ws.rs.client.ClientRequestFilter
Client filter adding support forcontent encoding
. The filter adds list of supported encodings to the Accept-Header values. Supported encodings are determined by looking up all theContentEncoder
implementations registered in the correspondingclient 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.
-
-
Field Summary
Fields Modifier and Type Field Description private InjectionManager
injectionManager
private java.util.List<java.lang.Object>
supportedEncodings
-
Constructor Summary
Constructors Constructor Description EncodingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.client.ClientRequestContext request)
(package private) java.util.List<java.lang.Object>
getSupportedEncodings()
-
-
-
Field Detail
-
injectionManager
@Inject private InjectionManager injectionManager
-
supportedEncodings
private volatile java.util.List<java.lang.Object> supportedEncodings
-
-