Home » HttpComponents-Core-4.0.1 » org.apache.http.impl.io » [javadoc | source]
public class: PlainSocketFactory [javadoc | source]

All Implemented Interfaces:

The default class for creating protocol sockets. This class just uses the socket constructors.
Method from org.apache.http.impl.io.PlainSocketFactory Summary:
createSocket,   equals,   getSocketFactory,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.http.impl.io.PlainSocketFactory Detail:
 public Socket createSocket(String host,
    int port,
    InetAddress localAddress,
    int localPort,
    HttpParams params) throws IOException, UnknownHostException 
    Attempts to get a new socket connection to using old (pre Java 1.4) IO mode. This socket factory does not support connect timeout as it requires Java 1.4 functionality.
 public boolean equals(Object obj) 
    All instances of DefaultProtocolSocketFactory are the same.
 public static PlainSocketFactory getSocketFactory() 
    Gets an singleton instance of the DefaultProtocolSocketFactory.
 public int hashCode() 
    All instances of DefaultProtocolSocketFactory have the same hash code.