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 private
DefaultConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.HttpURLConnection
getConnection(java.net.URL url)
Get aHttpURLConnection
for a given URL.
-
-
-
Method Detail
-
getConnection
public java.net.HttpURLConnection getConnection(java.net.URL url) throws java.io.IOException
Description copied from interface:HttpUrlConnectorProvider.ConnectionFactory
Get aHttpURLConnection
for a given URL.Implementation of the method MUST be thread-safe and MUST ensure that a dedicated
HttpURLConnection
instance is returned for concurrent requests.- Specified by:
getConnection
in interfaceHttpUrlConnectorProvider.ConnectionFactory
- Parameters:
url
- the endpoint URL.- Returns:
- the
HttpURLConnection
. - Throws:
java.io.IOException
- in case the connection cannot be provided.
-
-