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() |
getDefault
public 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.ProtocolSocketFactory
host
- 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 parameters
IOException
- if an I/O error occurs while creating the socketUnknownHostException
- if the IP address of the host cannot be
determinedorg.apache.commons.httpclient.ConnectTimeoutException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
createSocket
in class SocketFactory
IOException
UnknownHostException
ProtocolSocketFactory.createSocket(java.lang.String,int)
public Socket createSocket() throws IOException, UnknownHostException
createSocket
in class SocketFactory
IOException
UnknownHostException
SocketFactory.createSocket()
public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
createSocket
in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
createSocket
in class SSLSocketFactory
IOException
UnknownHostException
SecureProtocolSocketFactory.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.ProtocolSocketFactory
createSocket
in class SocketFactory
IOException
UnknownHostException
ProtocolSocketFactory.createSocket(java.lang.String,int,java.net.InetAddress,int)
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class SSLSocketFactory
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLSocketFactory
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.