Class JavaNetHttpConnectorProvider
java.lang.Object
org.glassfish.jersey.jnh.connector.JavaNetHttpConnectorProvider
- All Implemented Interfaces:
ConnectorProvider
A provider class for a Jersey client
Connector using Java's HttpClient.
The following configuration properties are available:
- Author:
- Steffen Nießing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnector(Client client, Configuration runtimeConfig) static HttpClientgetHttpClient(Configurable<?> component) Retrieve the JavaHttpClientused by the providedJavaNetHttpConnector.
-
Constructor Details
-
JavaNetHttpConnectorProvider
public JavaNetHttpConnectorProvider()
-
-
Method Details
-
getConnector
- Specified by:
getConnectorin interfaceConnectorProvider
-
getHttpClient
Retrieve the JavaHttpClientused by the providedJavaNetHttpConnector.- Parameters:
component- the component from which theJavaNetHttpConnectorshould be retrieved- Returns:
- a Java
HttpClientinstance - Throws:
IllegalArgumentException- if aJavaNetHttpConnectorcannot be provided from the givencomponent
-