|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.jdesktop.http.SSLProtocolSocketFactory
class SSLProtocolSocketFactory extends Object
| Field Summary | |
|---|---|
private SecurityHandler |
handler
|
private SecurityLevel |
level
|
private SSLContext |
sslcontext
|
| Constructor Summary | |
SSLProtocolSocketFactory(SecurityHandler h, SecurityLevel l)
Constructor for EasySSLProtocolSocketFactory. |
|
| Method Summary | |
|---|---|
Socket
|
createSocket(String host, int port, InetAddress clientHost, int clientPort)
@see SecureProtocolSocketFactory#createSocket(java.lang.String,int,java.net.InetAddress,int) |
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. |
Socket
|
createSocket(String host, int port)
@see SecureProtocolSocketFactory#createSocket(java.lang.String,int) |
Socket
|
createSocket(Socket socket, String host, int port, boolean autoClose)
@see SecureProtocolSocketFactory#createSocket(java.net.Socket,java.lang.String,int,boolean) |
boolean
|
equals(Object obj)
|
private SSLContext
|
getSSLContext(String host)
|
int
|
hashCode()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private SecurityHandler handler
private SecurityLevel level
private SSLContext sslcontext
| Constructor Detail |
|---|
public SSLProtocolSocketFactory(SecurityHandler h, SecurityLevel l)
| Method Detail |
|---|
public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort)
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params)
To circumvent the limitations of older JREs that do not support connect timeout a controller thread is executed. The controller thread attempts to create a new socket within the given limit of time. If socket constructor does not return until the timeout expires, the controller terminates and throws an org.apache.commons.httpclient.ConnectTimeoutException
host - the host name/IPport - the port on the hostclientHost - the local host name/IP to bind the socket toclientPort - the port on the local machineparams - org.apache.commons.httpclient.params.HttpConnectionParams
public Socket createSocket(String host, int port)
public Socket createSocket(Socket socket, String host, int port, boolean autoClose)
public boolean equals(Object obj)
private SSLContext getSSLContext(String host)
public int hashCode()
Groovy Documentation