|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.transport.https.HttpsURLConnectionFactory
public final class HttpsURLConnectionFactory
This HttpsURLConnectionFactory implements the HttpURLConnectionFactory for using the given SSL Policy to configure TLS connections for "https:" URLs.
Field Summary | |
---|---|
static String |
HTTPS_URL_PROTOCOL_ID
This constant holds the URL Protocol Identifier for HTTPS |
Constructor Summary | |
---|---|
HttpsURLConnectionFactory(TLSClientParameters params)
This constructor initialized the factory with the configured TLS Client Parameters for the HTTPConduit for which this factory is used. |
Method Summary | |
---|---|
protected void |
addLogHandler(Handler handler)
|
HttpURLConnection |
createConnection(Proxy proxy,
URL url)
Create a HttpURLConnection, proxified if necessary. |
protected void |
decorateWithTLS(HttpURLConnection connection)
This method assigns the various TLS parameters on the HttpsURLConnection from the TLS Client Parameters. |
HttpURLConnectionInfo |
getConnectionInfo(HttpURLConnection connection)
This operation returns an HttpsURLConnectionInfo for the given HttpsURLConnection. |
String |
getProtocol()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HTTPS_URL_PROTOCOL_ID
Constructor Detail |
---|
public HttpsURLConnectionFactory(TLSClientParameters params)
params
- The TLS Client Parameters. This parameter is guaranteed
to be non-null.Method Detail |
---|
public HttpURLConnection createConnection(Proxy proxy, URL url) throws IOException
createConnection
in interface HttpURLConnectionFactory
proxy
- This parameter is non-null if connection should be proxied.url
- The target URL. This parameter must be an https url.
IOException
- This exception is thrown if
the "url" is not "https" or other IOException
is thrown.protected void decorateWithTLS(HttpURLConnection connection) throws GeneralSecurityException
GeneralSecurityException
protected void addLogHandler(Handler handler)
public HttpURLConnectionInfo getConnectionInfo(HttpURLConnection connection) throws IOException
getConnectionInfo
in interface HttpURLConnectionFactory
connection
- The HttpsURLConnection
IOException
- Normal IO Exceptions.
ClassCastException
- If "connection" is not an HttpsURLConnection
(or a supported subtype of HttpURLConnection)public String getProtocol()
getProtocol
in interface HttpURLConnectionFactory
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |