public final class EncodingFilter extends Object implements jakarta.ws.rs.client.ClientRequestFilter
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.
Constructor and Description |
---|
EncodingFilter(org.glassfish.jersey.internal.inject.InjectionManager injectionManager) |
Modifier and Type | Method and Description |
---|---|
void |
filter(jakarta.ws.rs.client.ClientRequestContext request) |
@Inject public EncodingFilter(@Context org.glassfish.jersey.internal.inject.InjectionManager injectionManager)
public void filter(jakarta.ws.rs.client.ClientRequestContext request) throws IOException
filter
in interface jakarta.ws.rs.client.ClientRequestFilter
IOException
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.