| Modifier and Type | Field and Description |
|---|---|
| public static final PlainConnectionSocketFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | connectSocket(final TimeValue
connect timeout. connectTimeout, final Socket the socket to connect, as obtained from socket, final HttpHost createSocket(HttpContext).
null indicates that a new socket should be created and connected.target host as specified by the caller (end user). host, final InetSocketAddress the resolved remote address to connect to. remoteAddress, final InetSocketAddress the local address to bind the socket to, or localAddress, final HttpContext null for any.the actual HTTP context. context)Implements org. |
| public Socket | createSocket(final Proxy proxy, final HttpContext context)
Overrides default org. |
| public Socket | createSocket(final HttpContext context)
Implements org. |
| public static PlainConnectionSocketFactory |
| INSTANCE | back to summary |
|---|---|
| public static final PlainConnectionSocketFactory INSTANCE | |
| PlainConnectionSocketFactory | back to summary |
|---|---|
| public PlainConnectionSocketFactory() | |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(final TimeValue connectTimeout, final Socket socket, final HttpHost host, final InetSocketAddress remoteAddress, final InetSocketAddress localAddress, final HttpContext context) throws IOException Implements org. Doc from org. Connects the socket to the target host with the given resolved remote address.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(final Proxy proxy, final HttpContext context) throws IOException Overrides default org. Doc from org. Creates new, unconnected socket via a proxy (generally SOCKS is expected).
The socket should subsequently be passed to
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(final HttpContext context) throws IOException Implements org. Doc from org. Creates new, unconnected socket. The socket should subsequently be passed to
| |
| getSocketFactory | back to summary |
|---|---|
| public static PlainConnectionSocketFactory getSocketFactory() | |