java.lang.Object | |
↳ | org.apache.http.conn.scheme.PlainSocketFactory |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
The default class for creating sockets.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Connects a socket to the given host.
| |||||||||||
Creates a new, unconnected socket.
| |||||||||||
Compares this factory with an object.
| |||||||||||
Gets the singleton instance of this class.
| |||||||||||
Obtains a hash code for this object.
| |||||||||||
Checks whether a socket connection is secure.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.conn.scheme.SocketFactory
|
Connects a socket to the given host.
sock | the socket to connect, as obtained from
createSocket .
null indicates that a new socket
should be created and connected. |
---|---|
host | the host to connect to |
port | the port to connect to on the host |
localAddress | the local address to bind the socket to, or
null for any |
localPort | the port on the local machine, 0 or a negative number for any |
params | additional parameters for connecting |
sock
argument if this factory supports
a layered protocol.IOException |
---|
Creates a new, unconnected socket.
The socket should subsequently be passed to
connectSocket
.
Compares this factory with an object. There is only one instance of this class.
obj | the object to compare with |
---|
Gets the singleton instance of this class.
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.
Checks whether a socket connection is secure. This factory creates plain socket connections which are not considered secure.
sock | the connected socket |
---|
false
IllegalArgumentException | if the argument is invalid |
---|