public class PlainLayeredConnectionSocketFactory
extends java.lang.Object
implements org.apache.hc.client5.http.socket.ConnectionSocketFactory
| Constructor and Description | 
|---|
PlainLayeredConnectionSocketFactory()  | 
PlainLayeredConnectionSocketFactory(java.net.InetSocketAddress socksProxy)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.net.Socket | 
connectSocket(org.apache.hc.core5.util.TimeValue connectTimeout,
             java.net.Socket socket,
             org.apache.hc.core5.http.HttpHost host,
             java.net.InetSocketAddress remoteAddress,
             java.net.InetSocketAddress localAddress,
             org.apache.hc.core5.http.protocol.HttpContext context)  | 
java.net.Socket | 
createSocket(org.apache.hc.core5.http.protocol.HttpContext context)  | 
public PlainLayeredConnectionSocketFactory()
public PlainLayeredConnectionSocketFactory(java.net.InetSocketAddress socksProxy)
socksProxy - a SOCKS5 proxy or nullpublic java.net.Socket createSocket(org.apache.hc.core5.http.protocol.HttpContext context)
                             throws java.io.IOException
createSocket in interface org.apache.hc.client5.http.socket.ConnectionSocketFactoryjava.io.IOExceptionpublic java.net.Socket connectSocket(org.apache.hc.core5.util.TimeValue connectTimeout,
                                     java.net.Socket socket,
                                     org.apache.hc.core5.http.HttpHost host,
                                     java.net.InetSocketAddress remoteAddress,
                                     java.net.InetSocketAddress localAddress,
                                     org.apache.hc.core5.http.protocol.HttpContext context)
                              throws java.io.IOException
connectSocket in interface org.apache.hc.client5.http.socket.ConnectionSocketFactoryjava.io.IOException