|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.io.SSLSocketFactory
public class SSLSocketFactory
.A wrapper class for the standard JSSE SSLSocketFactory.
Constructor Summary | |
---|---|
SSLSocketFactory()
|
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.net.Socket socket,
java.lang.String host,
int port,
boolean autoClose)
Returns a socket connected to the given host that is layered over an existing socket. |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
HttpParams params)
Attempts to get a new socket connection to the given host within the given time limit. |
static SSLSocketFactory |
getSocketFactory()
Gets an singleton instance of the SSLProtocolSocketFactory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSLSocketFactory()
Method Detail |
---|
public static SSLSocketFactory getSocketFactory()
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, HttpParams params) throws java.io.IOException, java.net.UnknownHostException, ConnectTimeoutException
createSocket
in interface SocketFactory
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
java.io.IOException
- if an I/O error occurs while creating the socket
java.net.UnknownHostException
- if the IP address of the host cannot be
determined
ConnectTimeoutException
- if socket cannot be connected within the
given time limitpublic java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose) throws java.io.IOException, java.net.UnknownHostException
SecureSocketFactory
createSocket
in interface SecureSocketFactory
socket
- the existing sockethost
- the host name/IPport
- the port on the hostautoClose
- a flag for closing the underling socket when the created
socket is closed
java.io.IOException
- if an I/O error occurs while creating the socket
java.net.UnknownHostException
- if the IP address of the host cannot be
determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |