Class NettyConnectorProvider
- All Implemented Interfaces:
ConnectorProvider
connectors.
The following connector configuration properties are supported:
ClientProperties.CONNECT_TIMEOUTClientProperties.READ_TIMEOUTClientProperties.PROXY_URIClientProperties.PROXY_USERNAMEClientProperties.PROXY_PASSWORD
If a ClientResponse is obtained and an entity is not read from the response then
InboundMessageContext.close() MUST be called after processing the response to release
connection-based resources.
If a response entity is obtained that is an instance of Closeable then the instance MUST
be closed after processing the entity to release connection-based resources.
- Since:
- 2.24
- Author:
- Pavel Bucek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnector(Client client, Configuration runtimeConfig) Get a Jersey client connector instance for a givenclientinstance and Jersey client runtimeconfiguration.
-
Constructor Details
-
NettyConnectorProvider
public NettyConnectorProvider()
-
-
Method Details
-
getConnector
Description copied from interface:ConnectorProviderGet a Jersey client connector instance for a givenclientinstance and Jersey client runtimeconfiguration.Note that the supplied runtime configuration can be different from the client instance configuration as a single client can be used to serve multiple differently configured runtimes. While the
SSL contextorhostname verifierare shared, other configuration properties may change in each runtime.Based on the supplied client and runtime configuration data, it is up to each connector provider implementation to decide whether a new dedicated connector instance is required or if the existing, previously create connector instance can be reused.
- Specified by:
getConnectorin interfaceConnectorProvider- Parameters:
client- Jersey client instance.runtimeConfig- Jersey client runtime configuration.- Returns:
- configured
Connectorinstance to be used by the client.
-