| 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 socket, 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 default Socket | Returns: the connected socket. The returned object may be different from thesock argument if this factory supports
a layered protocol.the socket to connect, as obtained from socket, 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, Timeout null for any.connect timeout. connectTimeout, Object connect request attachment. attachment, HttpContext the actual HTTP context. context)Connects the socket to the target host with the given resolved remote address. |
| public Socket | |
| public default Socket | createSocket(Proxy proxy, HttpContext context)
Creates new, unconnected socket via a proxy (generally SOCKS is expected). |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(TimeValue connectTimeout, Socket socket, HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, HttpContext context) throws IOException Connects the socket to the target host with the given resolved remote address.
| |
| connectSocket | back to summary |
|---|---|
| public default Socket connectSocket(Socket socket, HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, Timeout connectTimeout, Object attachment, 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
| |
| createSocket | back to summary |
|---|---|
| public default Socket createSocket(Proxy proxy, HttpContext context) throws IOException Creates new, unconnected socket via a proxy (generally SOCKS is expected).
The socket should subsequently be passed to
| |