Class HttpUrlConnectorConfiguration<C extends HttpUrlConnectorConfiguration<C>>
java.lang.Object
org.glassfish.jersey.client.innate.ConnectorConfiguration<C>
org.glassfish.jersey.client.internal.HttpUrlConnectorConfiguration<C>
- Direct Known Subclasses:
HttpUrlConnectorConfiguration.ReadWrite,HttpUrlConnectorProvider.Config
public abstract class HttpUrlConnectorConfiguration<C extends HttpUrlConnectorConfiguration<C>>
extends org.glassfish.jersey.client.innate.ConnectorConfiguration<C>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.glassfish.jersey.client.innate.ConnectorConfiguration
org.glassfish.jersey.client.innate.ConnectorConfiguration.NullableRef<T extends Object>, org.glassfish.jersey.client.innate.ConnectorConfiguration.PrefixedConfiguration, org.glassfish.jersey.client.innate.ConnectorConfiguration.Read<CC extends org.glassfish.jersey.client.innate.ConnectorConfiguration<CC> & org.glassfish.jersey.client.innate.ConnectorConfiguration.Read<CC>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.glassfish.jersey.client.innate.ConnectorConfiguration.NullableRef<HttpUrlConnectorProvider.ConnectionFactory>protected static final HttpUrlConnectorProvider.ConnectionFactoryDefault connection factory to be used.Fields inherited from class org.glassfish.jersey.client.innate.ConnectorConfiguration
connectTimeout, expect100Continue, expect100continueThreshold, followRedirects, prefix, proxyPassword, proxyUri, proxyUserName, readTimeout, requestEntityProcessing, sniHostname, sslContextSupplier, threadPoolSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchunkSize(int chunkSize) Set chunk size for requests transferred using a HTTP chunked transfer coding.connectionFactory(HttpUrlConnectorProvider.ConnectionFactory connectionFactory) Set a customHttpURLConnectionfactory.booleaninthashCode()protected voiduseFixedLengthStreaming(boolean use) Instruct the provided connectors to use thefixed-length streaming modeon the underlying HTTP URL connection instance when sending requests.useSetMethodWorkaround(boolean use) Instruct the provided connectors to use reflection when setting the HTTP method value.Methods inherited from class org.glassfish.jersey.client.innate.ConnectorConfiguration
asyncThreadPoolSize, connectTimeout, expect100Continue, expect100ContinueThreshold, followRedirects, prefix, proxy, proxyPassword, proxyUri, proxyUri, proxyUserName, readTimeout, requestEntityProcessing, self, sniHostName, sslContextSupplier
-
Field Details
-
DEFAULT_CONNECTION_FACTORY
Default connection factory to be used. -
connectionFactory
protected org.glassfish.jersey.client.innate.ConnectorConfiguration.NullableRef<HttpUrlConnectorProvider.ConnectionFactory> connectionFactory -
chunkSize
-
useFixedLengthStreaming
-
useSetMethodWorkaround
-
-
Constructor Details
-
HttpUrlConnectorConfiguration
public HttpUrlConnectorConfiguration()
-
-
Method Details
-
preInit
-
connectionFactory
Set a customHttpURLConnectionfactory.- Parameters:
connectionFactory- custom HTTP URL connection factory. Must not benull.- Returns:
- updated configuration.
- Throws:
NullPointerException- in case the supplied connectionFactory isnull.
-
chunkSize
Set chunk size for requests transferred using a HTTP chunked transfer coding. If no value is set, the default chunk size of 4096 bytes will be used.Note that this programmatically set value can be overridden by setting the
ClientProperties.CHUNKED_ENCODING_SIZEproperty specified in the Jersey client instance configuration.- Parameters:
chunkSize- chunked transfer coding chunk size to be used.- Returns:
- updated configuration.
- Throws:
IllegalArgumentException- in case the specified chunk size is negative.
-
useFixedLengthStreaming
Instruct the provided connectors to use thefixed-length streaming modeon the underlying HTTP URL connection instance when sending requests. SeeHttpUrlConnectorProvider.USE_FIXED_LENGTH_STREAMINGproperty documentation for more details.Note that this programmatically set value can be overridden by setting the
USE_FIXED_LENGTH_STREAMINGproperty specified in the Jersey client instance configuration.- Returns:
- updated configuration.
-
useSetMethodWorkaround
Instruct the provided connectors to use reflection when setting the HTTP method value. SeeHttpUrlConnectorProvider.SET_METHOD_WORKAROUNDproperty documentation for more details.Note that this programmatically set value can be overridden by setting the
SET_METHOD_WORKAROUNDproperty specified in the Jersey client instance configuration or in the request properties.- Returns:
- updated configuration.
-
equals
-
hashCode
public int hashCode()
-