| 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 int
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 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 int 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 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() | |