public class SocksConnectionSocketFactory
extends org.apache.http.conn.socket.PlainConnectionSocketFactory
ConnectionSocketFactory
.Constructor and Description |
---|
SocksConnectionSocketFactory() |
Modifier and Type | Method and Description |
---|---|
Socket |
createSocket(org.apache.http.protocol.HttpContext context) |
static void |
setSocksProxy(org.apache.http.protocol.HttpContext context,
org.apache.http.HttpHost socksProxy)
Enables the socks proxy.
|
public static void setSocksProxy(org.apache.http.protocol.HttpContext context, org.apache.http.HttpHost socksProxy)
context
- the HttpContextsocksProxy
- the HttpHostpublic Socket createSocket(org.apache.http.protocol.HttpContext context) throws IOException
createSocket
in interface org.apache.http.conn.socket.ConnectionSocketFactory
createSocket
in class org.apache.http.conn.socket.PlainConnectionSocketFactory
IOException
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.