Package org.apache.cxf.transport.https
Class HttpsURLConnectionFactory
- java.lang.Object
-
- org.apache.cxf.transport.https.HttpsURLConnectionFactory
-
public class HttpsURLConnectionFactory extends Object
This HttpsURLConnectionFactory implements the HttpURLConnectionFactory for using the given SSL Policy to configure TLS connections for "https:" URLs.
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTPS_URL_PROTOCOL_ID
This constant holds the URL Protocol Identifier for HTTPS
-
Constructor Summary
Constructors Constructor Description HttpsURLConnectionFactory()
This constructor initialized the factory with the configured TLS Client Parameters for the HTTPConduit for which this factory is used.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLogHandler(Handler handler)
HttpURLConnection
createConnection(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters, Proxy proxy, URL url)
Create a HttpURLConnection, proxified if necessary.protected void
decorateWithTLS(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters, HttpURLConnection connection)
This method assigns the various TLS parameters on the HttpsURLConnection from the TLS Client Parameters.
-
-
-
Field Detail
-
HTTPS_URL_PROTOCOL_ID
public static final String HTTPS_URL_PROTOCOL_ID
This constant holds the URL Protocol Identifier for HTTPS- See Also:
- Constant Field Values
-
-
Method Detail
-
createConnection
public HttpURLConnection createConnection(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters, Proxy proxy, URL url) throws IOException
Create a HttpURLConnection, proxified if necessary.- Parameters:
proxy
- This parameter is non-null if connection should be proxied.url
- The target URL.- Returns:
- The HttpURLConnection for the given URL.
- Throws:
IOException
-
decorateWithTLS
protected void decorateWithTLS(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters, HttpURLConnection connection) throws GeneralSecurityException
This method assigns the various TLS parameters on the HttpsURLConnection from the TLS Client Parameters. Connection parameter is of supertype HttpURLConnection, which allows internal cast to potentially divergent subtype (https) implementations.- Throws:
GeneralSecurityException
-
addLogHandler
protected void addLogHandler(Handler handler)
-
-