EncodingFilterand the specified set of
encoding providersto the
client configuration. It also allows setting the value of
|Constructor and Description|
Create a new instance of the feature.
Create a new instance of the feature specifying the default value for the
|Modifier and Type||Method and Description|
A call-back method called when the feature is to be enabled in a given runtime configuration scope.
public EncodingFeature(Class<?>... encodingProviders)
encodingProviders- Encoding providers to be registered in the client configuration.
ClientProperties.USE_ENCODINGproperty. Unless the value is set in the client configuration properties at the time when this feature gets enabled, the provided value will be used.
useEncoding- Default value of
encoders- Encoders to be registered in the client configuration.
public boolean configure(FeatureContext context)
trueif the feature was successfully enabled or
Note that under some circumstances the feature may decide not to enable itself, which
is indicated by returning
false. In such case the configuration context does
not add the feature to the collection of enabled features and a subsequent call to
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.