/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }
/** * Create a new instance of the feature specifying the default value for the * {@link ClientProperties#USE_ENCODING} property. Unless the value is set in the client configuration * properties at the time when this feature gets enabled, the provided value will be used. * * @param useEncoding Default value of {@link ClientProperties#USE_ENCODING} property. * @param encoders Encoders to be registered in the client configuration. */ public EncodingFeature(String useEncoding, Class<?>... encoders) { this.useEncoding = useEncoding; Providers.ensureContract(ContentEncoder.class, encoders); this.encodingProviders = encoders; }