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 forcontent encoding. The filter adds list of supported encodings to the Accept-Header values. Supported encodings are determined by looking up all theContentEncoderimplementations registered in the correspondingclient configuration.If
ClientProperties.USE_ENCODINGclient 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
-
-
Constructor Summary
Constructors Constructor Description EncodingFilter(org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(ClientRequestContext request)Filter method called before a request has been dispatched to a client transport layer.
-
-
-
Constructor Detail
-
EncodingFilter
@Inject public EncodingFilter(@Context org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
-
-
Method Detail
-
filter
public void filter(ClientRequestContext request) throws IOException
Description copied from interface:ClientRequestFilterFilter method called before a request has been dispatched to a client transport layer. Filters in the filter chain are ordered according to theirjakarta.annotation.Priorityclass-level annotation value.- Specified by:
filterin interfaceClientRequestFilter- Parameters:
request- request context.- Throws:
IOException- if an I/O exception occurs.
-
-