@InterfaceAudience.Public @InterfaceStability.Evolving public class SocksSocketFactory extends SocketFactory implements Configurable
コンストラクタと説明 |
---|
SocksSocketFactory()
Default empty constructor (for use with the reflection API).
|
SocksSocketFactory(Proxy proxy)
Constructor with a supplied Proxy
|
修飾子とタイプ | メソッドと説明 |
---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress addr,
int port) |
Socket |
createSocket(InetAddress addr,
int port,
InetAddress localHostAddr,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHostAddr,
int localPort) |
boolean |
equals(Object obj) |
Configuration |
getConf()
Return the configuration used by this object.
|
int |
hashCode() |
void |
setConf(Configuration conf)
Set the configuration to be used by this object.
|
getDefault
public SocksSocketFactory()
public SocksSocketFactory(Proxy proxy)
proxy
- the proxy to use to create socketspublic Socket createSocket() throws IOException
createSocket
クラス内 SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port) throws IOException
createSocket
クラス内 SocketFactory
IOException
public Socket createSocket(InetAddress addr, int port, InetAddress localHostAddr, int localPort) throws IOException
createSocket
クラス内 SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket
クラス内 SocketFactory
IOException
UnknownHostException
public Socket createSocket(String host, int port, InetAddress localHostAddr, int localPort) throws IOException, UnknownHostException
createSocket
クラス内 SocketFactory
IOException
UnknownHostException
public Configuration getConf()
Configurable
getConf
インタフェース内 Configurable
public void setConf(Configuration conf)
Configurable
setConf
インタフェース内 Configurable
Copyright © 2016 Apache Software Foundation. All rights reserved.