Groovy Documentation

org.jdesktop.http
[Java] Class SSLProtocolSocketFactory

java.lang.Object
  org.jdesktop.http.SSLProtocolSocketFactory
All Implemented Interfaces:
org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory, org.apache.commons.httpclient.protocol.ProtocolSocketFactory

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

handler

private SecurityHandler handler


level

private SecurityLevel level


sslcontext

private SSLContext sslcontext


 
Constructor Detail

SSLProtocolSocketFactory

public SSLProtocolSocketFactory(SecurityHandler h, SecurityLevel l)
Constructor for EasySSLProtocolSocketFactory.


 
Method Detail

createSocket

public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort)
See Also:
SecureProtocolSocketFactory#createSocket(java.lang.String,int,java.net.InetAddress,int)


createSocket

public 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.

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

throws:
IOException if an I/O error occurs while creating the socket
throws:
UnknownHostException if the IP address of the host cannot be determined
Parameters:
host - the host name/IP
port - the port on the host
clientHost - the local host name/IP to bind the socket to
clientPort - the port on the local machine
params - org.apache.commons.httpclient.params.HttpConnectionParams
Returns:
Socket a new socket


createSocket

public Socket createSocket(String host, int port)
See Also:
SecureProtocolSocketFactory#createSocket(java.lang.String,int)


createSocket

public Socket createSocket(Socket socket, String host, int port, boolean autoClose)
See Also:
SecureProtocolSocketFactory#createSocket(java.net.Socket,java.lang.String,int,boolean)


equals

public boolean equals(Object obj)


getSSLContext

private SSLContext getSSLContext(String host)


hashCode

public int hashCode()


 

Groovy Documentation