org.apache.http.conn.scheme.PlainSocketFactory
The default class for creating sockets.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
PlainSocketFactory()
Public Methods
public
Socket
createSocket()
Creates a new, unconnected socket.
The socket should subsequently be passed to
connectSocket.
public
boolean
equals(Object obj)
Compares this factory with an object.
There is only one instance of this class.
Parameters
obj
| the object to compare with |
Returns
- iff the argument is this object
Gets the singleton instance of this class.
Returns
- the one and only plain socket factory
public
int
hashCode()
Obtains a hash code for this object.
All instances of this class have the same hash code.
There is only one instance of this class.
public
final
boolean
isSecure(Socket sock)
Checks whether a socket connection is secure.
This factory creates plain socket connections
which are not considered secure.
Parameters
sock
| the connected socket |