public class HttpsURLConnectionFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HTTPS_URL_PROTOCOL_ID
This constant holds the URL Protocol Identifier for HTTPS
|
Constructor and Description |
---|
HttpsURLConnectionFactory()
This constructor initialized the factory with the configured TLS
Client Parameters for the HTTPConduit for which this factory is used.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addLogHandler(Handler handler) |
HttpURLConnection |
createConnection(TLSClientParameters tlsClientParameters,
Proxy proxy,
URL url)
Create a HttpURLConnection, proxified if necessary.
|
protected void |
decorateWithTLS(TLSClientParameters tlsClientParameters,
HttpURLConnection connection)
This method assigns the various TLS parameters on the HttpsURLConnection
from the TLS Client Parameters.
|
public static final String HTTPS_URL_PROTOCOL_ID
public HttpsURLConnectionFactory()
public HttpURLConnection createConnection(TLSClientParameters tlsClientParameters, Proxy proxy, URL url) throws IOException
proxy
- This parameter is non-null if connection should be proxied.url
- The target URL.IOException
protected void decorateWithTLS(TLSClientParameters tlsClientParameters, HttpURLConnection connection) throws GeneralSecurityException
GeneralSecurityException
protected void addLogHandler(Handler handler)
Apache CXF