Class JdkConnectorProvider
java.lang.Object
org.glassfish.jersey.jdk.connector.JdkConnectorProvider
- All Implemented Interfaces:
ConnectorProvider
- Author:
- Petr Janouch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConnector
(Client client, Configuration config) Get a Jersey client connector instance for a givenclient
instance and Jersey client runtimeconfiguration
.
-
Constructor Details
-
JdkConnectorProvider
public JdkConnectorProvider()
-
-
Method Details
-
getConnector
Description copied from interface:ConnectorProvider
Get a Jersey client connector instance for a givenclient
instance 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 context
orhostname verifier
are 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:
getConnector
in interfaceConnectorProvider
- Parameters:
client
- Jersey client instance.config
- Jersey client runtime configuration.- Returns:
- configured
Connector
instance to be used by the client.
-