| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: the connected socket. The returned object may be different from thesock argument if this factory supports
a layered protocol.connect timeout. connectTimeout, Socket the socket to connect, as obtained from sock, HttpHost createSocket(HttpContext).
null indicates that a new socket should be created and connected.target host as specified by the caller (end user). host, InetSocketAddress the resolved remote address to connect to. remoteAddress, InetSocketAddress the local address to bind the socket to, or localAddress, HttpContext null for any.the actual HTTP context. context)Connects the socket to the target host with the given resolved remote address. |
| public Socket |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(int connectTimeout, Socket sock, HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, HttpContext context) throws IOException Connects the socket to the target host with the given resolved remote address.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(HttpContext context) throws IOException Creates new, unconnected socket. The socket should subsequently be passed to
| |