org.apache.camel.component.http
Class SSLContextParametersSecureProtocolSocketFactory
java.lang.Object
org.apache.camel.component.http.SSLContextParametersSecureProtocolSocketFactory
- All Implemented Interfaces:
- org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
public class SSLContextParametersSecureProtocolSocketFactory
- extends Object
- implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
A SecureProtocolSocketFactory
implementation to allow configuration
of Commons HTTP SSL/TLS options based on a #JSSEClientParameters
instance or a provided SSLSocketFactory
instance.
Method Summary |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose)
|
Socket |
createSocket(String host,
int port)
|
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort)
|
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
protected SSLSocketFactory factory
context
protected SSLContext context
SSLContextParametersSecureProtocolSocketFactory
public SSLContextParametersSecureProtocolSocketFactory(SSLSocketFactory factory)
- Creates a new instance using the provided factory.
- Parameters:
factory
- the factory to use
SSLContextParametersSecureProtocolSocketFactory
public SSLContextParametersSecureProtocolSocketFactory(org.apache.camel.util.jsse.SSLContextParameters params)
- Creates a new instance using a factory created by the provided client configuration
parameters.
- Parameters:
params
- the configuration parameters to use when creating the socket factory
createSocket
public Socket createSocket(String host,
int port,
InetAddress localAddress,
int localPort)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params)
throws IOException,
UnknownHostException,
org.apache.commons.httpclient.ConnectTimeoutException
- Specified by:
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
org.apache.commons.httpclient.ConnectTimeoutException
createSocket
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(Socket socket,
String host,
int port,
boolean autoClose)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
- Throws:
IOException
UnknownHostException
Apache CAMEL