com.splitforce.lib.client.net
Class SimpleSSLSocketFactory

java.lang.Object
  extended by com.splitforce.lib.client.net.SimpleSSLSocketFactory
All Implemented Interfaces:
org.apache.http.conn.scheme.LayeredSocketFactory, org.apache.http.conn.scheme.SocketFactory

public class SimpleSSLSocketFactory
extends java.lang.Object
implements org.apache.http.conn.scheme.SocketFactory, org.apache.http.conn.scheme.LayeredSocketFactory


Constructor Summary
SimpleSSLSocketFactory()
           
 
Method Summary
 java.net.Socket connectSocket(java.net.Socket sock, java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.http.params.HttpParams params)
           
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
           
 boolean isSecure(java.net.Socket socket)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSSLSocketFactory

public SimpleSSLSocketFactory()
Method Detail

connectSocket

public java.net.Socket connectSocket(java.net.Socket sock,
                                     java.lang.String host,
                                     int port,
                                     java.net.InetAddress localAddress,
                                     int localPort,
                                     org.apache.http.params.HttpParams params)
                              throws java.io.IOException,
                                     java.net.UnknownHostException,
                                     org.apache.http.conn.ConnectTimeoutException
Specified by:
connectSocket in interface org.apache.http.conn.scheme.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
org.apache.http.conn.ConnectTimeoutException

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException
Specified by:
createSocket in interface org.apache.http.conn.scheme.SocketFactory
Throws:
java.io.IOException

isSecure

public boolean isSecure(java.net.Socket socket)
                 throws java.lang.IllegalArgumentException
Specified by:
isSecure in interface org.apache.http.conn.scheme.SocketFactory
Throws:
java.lang.IllegalArgumentException

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in interface org.apache.http.conn.scheme.LayeredSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException