|
|||||||||
| Home >> All >> org >> apache >> http >> impl >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.http.impl.io
Class PlainSocketFactory

java.lang.Objectorg.apache.http.impl.io.PlainSocketFactory
- All Implemented Interfaces:
- org.apache.http.io.SocketFactory
- public class PlainSocketFactory
- extends java.lang.Object
- implements org.apache.http.io.SocketFactory
- extends java.lang.Object
The default class for creating protocol sockets. This class just uses the socket constructors.
- Since:
- 2.0
| Field Summary | |
private static PlainSocketFactory |
DEFAULT_FACTORY
The factory singleton. |
| Constructor Summary | |
private |
PlainSocketFactory()
Constructor for DefaultProtocolSocketFactory. |
| Method Summary | |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
org.apache.http.params.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 |
| Field Detail |
DEFAULT_FACTORY
private static final PlainSocketFactory DEFAULT_FACTORY
- The factory singleton.
| Constructor Detail |
PlainSocketFactory
private PlainSocketFactory()
- Constructor for DefaultProtocolSocketFactory.
| Method Detail |
getSocketFactory
public static PlainSocketFactory getSocketFactory()
- Gets an singleton instance of the DefaultProtocolSocketFactory.
createSocket
public java.net.Socket createSocket(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
- 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.
- Specified by:
createSocketin interfaceorg.apache.http.io.SocketFactory
- Since:
- 3.0
equals
public boolean equals(java.lang.Object obj)
- All instances of DefaultProtocolSocketFactory are the same.
hashCode
public int hashCode()
- All instances of DefaultProtocolSocketFactory have the same hash code.
|
|||||||||
| Home >> All >> org >> apache >> http >> impl >> [ io overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.http.impl.io.PlainSocketFactory