Class JdkConnectorProvider
- java.lang.Object
-
- org.glassfish.jersey.jdk.connector.JdkConnectorProvider
-
- All Implemented Interfaces:
ConnectorProvider
public class JdkConnectorProvider extends java.lang.Object implements ConnectorProvider
-
-
Constructor Summary
Constructors Constructor Description JdkConnectorProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorgetConnector(javax.ws.rs.client.Client client, javax.ws.rs.core.Configuration config)Get a Jersey client connector instance for a givenclientinstance and Jersey client runtimeconfiguration.
-
-
-
Method Detail
-
getConnector
public Connector getConnector(javax.ws.rs.client.Client client, javax.ws.rs.core.Configuration config)
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.config- Jersey client runtime configuration.- Returns:
- configured
Connectorinstance to be used by the client.
-
-