public final class HttpsURLConnectionFactory extends Object implements HttpURLConnectionFactory
HttpURLConnectionFactory
whose responsible to configure
the underlying https connection, if needed, with a given hostname and SSL socket factory based on the
configuration provided.setHostnameVerifier(HostnameVerifier)
,
setSSLConfiguration(Properties)
Constructor and Description |
---|
HttpsURLConnectionFactory() |
HttpsURLConnectionFactory(HostnameVerifier verifier,
Properties config) |
Modifier and Type | Method and Description |
---|---|
HttpURLConnection |
buildHttpURLConnection(URLConnection url)
Receives a
URLConnection instance typically as a result of a URL
opening a connection to a remote resource. |
void |
setHostnameVerifier(HostnameVerifier verifier)
Set the host name verifier for the https connection received.
|
void |
setSSLConfiguration(Properties config) |
public HttpsURLConnectionFactory()
public HttpsURLConnectionFactory(HostnameVerifier verifier, Properties config)
public final void setSSLConfiguration(Properties config)
public final void setHostnameVerifier(HostnameVerifier verifier)
public HttpURLConnection buildHttpURLConnection(URLConnection url)
HttpURLConnectionFactory
URLConnection
instance typically as a result of a URL
opening a connection to a remote resource. The received url connection is then
configured and prepared appropriately depending on its type and is then returned to the caller
to accommodate method chaining.buildHttpURLConnection
in interface HttpURLConnectionFactory
url
- The url connection that needs to be configuredHttpURLConnection
instanceHttpsURLConnectionFactory}
Copyright © 2006–2016 Jasig. All rights reserved.