|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface HttpUrlConnector.ConnectionFactory
A factory for HttpURLConnection instances.
A factory may be used to create a HttpURLConnection and configure
it in a custom manner that is not possible using the Client API.
A factory instance may be registered with the constructor
HttpUrlConnector.HttpUrlConnector(javax.ws.rs.core.Configuration,
org.glassfish.jersey.client.HttpUrlConnector.ConnectionFactory)
Then the HttpUrlConnector instance may be registered with a JerseyClient
or JerseyWebTarget configuration via
ClientConfig.connector(org.glassfish.jersey.client.spi.Connector).
| Method Summary | |
|---|---|
HttpURLConnection |
getConnection(URL url)
Get a HttpURLConnection for a given URL. |
| Method Detail |
|---|
HttpURLConnection getConnection(URL url)
throws IOException
HttpURLConnection 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.
url - the endpoint URL.
HttpURLConnection.
IOException - in case the connection cannot be provided.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||