org.apache.hadoop.net
Class StandardSocketFactory
java.lang.Object
javax.net.SocketFactory
org.apache.hadoop.net.StandardSocketFactory
public class StandardSocketFactory
- extends SocketFactory
Specialized SocketFactory to create sockets with a SOCKS proxy
StandardSocketFactory
public StandardSocketFactory()
- Default empty constructor (for use with the reflection API).
createSocket
public Socket createSocket()
throws IOException
- Overrides:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress addr,
int port)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(InetAddress addr,
int port,
InetAddress localHostAddr,
int localPort)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
createSocket
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
createSocket
public Socket createSocket(String host,
int port,
InetAddress localHostAddr,
int localPort)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2008 The Apache Software Foundation