Package org.glassfish.jersey.client
Class HttpUrlConnectorProvider.DefaultConnectionFactory
- java.lang.Object
-
- org.glassfish.jersey.client.HttpUrlConnectorProvider.DefaultConnectionFactory
-
- All Implemented Interfaces:
HttpUrlConnectorProvider.ConnectionFactory
- Enclosing class:
- HttpUrlConnectorProvider
private static class HttpUrlConnectorProvider.DefaultConnectionFactory extends java.lang.Object implements HttpUrlConnectorProvider.ConnectionFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.HttpURLConnectiongetConnection(java.net.URL url)Get aHttpURLConnectionfor a given URL.
-
-
-
Method Detail
-
getConnection
public java.net.HttpURLConnection getConnection(java.net.URL url) throws java.io.IOExceptionDescription copied from interface:HttpUrlConnectorProvider.ConnectionFactoryGet aHttpURLConnectionfor a given URL.Implementation of the method MUST be thread-safe and MUST ensure that a dedicated
HttpURLConnectioninstance is returned for concurrent requests.- Specified by:
getConnectionin interfaceHttpUrlConnectorProvider.ConnectionFactory- Parameters:
url- the endpoint URL.- Returns:
- the
HttpURLConnection. - Throws:
java.io.IOException- in case the connection cannot be provided.
-
-