Save This Page
Home » httpcomponents-client-4.0.1-src » org.apache » http » conn » scheme » [javadoc | source]
org.apache.http.conn.scheme
public final class: PlainSocketFactory [javadoc | source]
java.lang.Object
   org.apache.http.conn.scheme.PlainSocketFactory

All Implemented Interfaces:
    SocketFactory

The default class for creating plain (unencrypted) sockets.

The following parameters can be used to customize the behavior of this class:

Constructor:
 public PlainSocketFactory() 
 public PlainSocketFactory(HostNameResolver nameResolver) 
Method from org.apache.http.conn.scheme.PlainSocketFactory Summary:
connectSocket,   createSocket,   getSocketFactory,   isSecure
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.conn.scheme.PlainSocketFactory Detail:
 public Socket connectSocket(Socket sock,
    String host,
    int port,
    InetAddress localAddress,
    int localPort,
    HttpParams params) throws IOException 
 public Socket createSocket() 
 public static PlainSocketFactory getSocketFactory() 
    Gets the default factory. Usually there should be no reason for creating multiple instances of this class.
 public final boolean isSecure(Socket sock) throws IllegalArgumentException 
    Checks whether a socket connection is secure. This factory creates plain socket connections which are not considered secure.