DetachedSocketFactory.
 Please note this interface is considered internal.@Deprecated @Contract(threading=STATELESS) public class PlainConnectionSocketFactory extends Object implements ConnectionSocketFactory
| Modifier and Type | Field and Description | 
|---|---|
| static PlainConnectionSocketFactory | INSTANCEDeprecated.  Default instance of  PlainConnectionSocketFactory. | 
| Constructor and Description | 
|---|
| PlainConnectionSocketFactory()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| Socket | connectSocket(org.apache.hc.core5.util.TimeValue connectTimeout,
             Socket socket,
             org.apache.hc.core5.http.HttpHost host,
             InetSocketAddress remoteAddress,
             InetSocketAddress localAddress,
             org.apache.hc.core5.http.protocol.HttpContext context)Deprecated.  Connects the socket to the target host with the given resolved remote address. | 
| Socket | createSocket(org.apache.hc.core5.http.protocol.HttpContext context)Deprecated.  Creates new, unconnected socket. | 
| Socket | createSocket(Proxy proxy,
            org.apache.hc.core5.http.protocol.HttpContext context)Deprecated.  Creates new, unconnected socket via a proxy (generally SOCKS is expected). | 
| static PlainConnectionSocketFactory | getSocketFactory()Deprecated.  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectSocketpublic static final PlainConnectionSocketFactory INSTANCE
PlainConnectionSocketFactory.public static PlainConnectionSocketFactory getSocketFactory()
public Socket createSocket(Proxy proxy, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
ConnectionSocketFactoryconnectSocket method.createSocket in interface ConnectionSocketFactoryIOExceptionpublic Socket createSocket(org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
ConnectionSocketFactoryconnectSocket method.createSocket in interface ConnectionSocketFactoryIOExceptionpublic Socket connectSocket(org.apache.hc.core5.util.TimeValue connectTimeout, Socket socket, org.apache.hc.core5.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
ConnectionSocketFactoryconnectSocket in interface ConnectionSocketFactoryconnectTimeout - connect timeout.socket - the socket to connect, as obtained from ConnectionSocketFactory.createSocket(HttpContext).
 null indicates that a new socket should be created and connected.host - target host as specified by the caller (end user).remoteAddress - the resolved remote address to connect to.localAddress - the local address to bind the socket to, or null for any.context - the actual HTTP context.sock argument if this factory supports
          a layered protocol.IOException - if an I/O error occursCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.