public class HttpSSLProtocolSocketFactory extends SSLSocketFactory implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
| Constructor and Description |
|---|
HttpSSLProtocolSocketFactory(JsseSSLManager sslManager) |
HttpSSLProtocolSocketFactory(JsseSSLManager sslManager,
int cps) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort,
org.apache.commons.httpclient.params.HttpConnectionParams params)
Attempts to get a new socket connection to the given host within the given time limit.
|
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
getDefaultpublic HttpSSLProtocolSocketFactory(JsseSSLManager sslManager)
public HttpSSLProtocolSocketFactory(JsseSSLManager sslManager, int cps)
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
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactoryhost - the host name/IPport - the port on the hostlocalAddress - the local host name/IP to bind the socket tolocalPort - the port on the local machineparams - Http connection parametersIOException - if an I/O error occurs while creating the socketUnknownHostException - if the IP address of the host cannot be
determinedorg.apache.commons.httpclient.ConnectTimeoutExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactorycreateSocket in class SocketFactoryIOExceptionUnknownHostExceptionProtocolSocketFactory.createSocket(java.lang.String,int)public Socket createSocket() throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionSocketFactory.createSocket()public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactorycreateSocket in class SSLSocketFactoryIOExceptionUnknownHostExceptionSecureProtocolSocketFactory.createSocket(java.net.Socket,java.lang.String,int,boolean)public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException, UnknownHostException
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactorycreateSocket in class SocketFactoryIOExceptionUnknownHostExceptionProtocolSocketFactory.createSocket(java.lang.String,int,java.net.InetAddress,int)public Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactoryCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.