|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.net.SocketFactory
org.apache.hadoop.net.SocksSocketFactory
public class SocksSocketFactory
Specialized SocketFactory to create sockets with a SOCKS proxy
| Constructor Summary | |
|---|---|
SocksSocketFactory()
Default empty constructor (for use with the reflection API). |
|
SocksSocketFactory(Proxy proxy)
Constructor with a supplied Proxy |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.net.SocketFactory |
|---|
getDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocksSocketFactory()
public SocksSocketFactory(Proxy proxy)
proxy - the proxy to use to create sockets| Method Detail |
|---|
public Socket createSocket()
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(InetAddress addr,
int port)
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(InetAddress addr,
int port,
InetAddress localHostAddr,
int localPort)
throws IOException
createSocket in class SocketFactoryIOException
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryIOException
UnknownHostException
public Socket createSocket(String host,
int port,
InetAddress localHostAddr,
int localPort)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryIOException
UnknownHostExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Configuration getConf()
Configurable
getConf in interface Configurablepublic void setConf(Configuration conf)
Configurable
setConf in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||