|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.io.PlainSocketFactory
public class PlainSocketFactory
The default class for creating protocol sockets. This class just uses the
socket
constructors.
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
HttpParams params)
Attempts to get a new socket connection to using old (pre Java 1.4) IO mode. |
boolean |
equals(java.lang.Object obj)
All instances of DefaultProtocolSocketFactory are the same. |
static PlainSocketFactory |
getSocketFactory()
Gets an singleton instance of the DefaultProtocolSocketFactory. |
int |
hashCode()
All instances of DefaultProtocolSocketFactory have the same hash code. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PlainSocketFactory getSocketFactory()
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, HttpParams params) throws java.io.IOException, java.net.UnknownHostException
createSocket
in interface SocketFactory
host
- the host name/IPport
- the port on the hostlocalAddress
- the local host name/IP to bind the socket tolocalPort
- the port on the local machineparams
- Http connection parameters
java.io.IOException
- if an I/O error occurs while creating the socket
java.net.UnknownHostException
- if the IP address of the host cannot be
java.lang.IllegalStateException
- if connection timeout is set
determinedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |