|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.net.SocketFactory
com.sun.faban.driver.transport.sunhttp.SocketFactory
com.sun.faban.driver.transport.util.TimedSocketFactory
public class TimedSocketFactory
Socket factory to create new timed socket.
| Constructor Summary | |
|---|---|
TimedSocketFactory()
|
|
| Method Summary | |
|---|---|
Socket |
createSocket()
Creates a new socket. |
Socket |
createSocket(InetAddress address,
int port)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
Socket |
createSocket(InetAddress host,
int port,
InetAddress localAddr,
int localPort)
Creates a stream socket and connects it to the specified port using a specified local address and port. |
Socket |
createSocket(Proxy proxy)
Creates a socket through the given proxy. |
Socket |
createSocket(String host,
int port)
Creates a new socket connected to the given host and port. |
Socket |
createSocket(String host,
int port,
InetAddress localAddr,
int localPort)
Creates a stream socket and connects it to the specified port using a specified local address and port. |
| Methods inherited from class javax.net.SocketFactory |
|---|
getDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimedSocketFactory()
| Method Detail |
|---|
public Socket createSocket(Proxy proxy)
createSocket in class SocketFactoryproxy - The proxy
public Socket createSocket()
throws IOException
createSocket in class SocketFactoryIOException - Error creating the socket
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryhost - The host to connectport - The port to use
IOException - Error creating the socket
UnknownHostException - The host is unknown
public Socket createSocket(String host,
int port,
InetAddress localAddr,
int localPort)
throws IOException,
UnknownHostException
createSocket in class SocketFactoryhost - the name of the remote host, or null
for the loopback address.port - the remote portlocalAddr - the local address the socket is bound tolocalPort - the local port the socket is bound to
IOException - if an I/O error occurs when creating the socket.
UnknownHostException - The host is unknown
public Socket createSocket(InetAddress address,
int port)
throws IOException
createSocket in class SocketFactoryaddress - the IP address.port - the port number.
IOException - if an I/O error occurs when creating the socket.
public Socket createSocket(InetAddress host,
int port,
InetAddress localAddr,
int localPort)
throws IOException
createSocket in class SocketFactoryhost - the address of the remote hostport - the remote portlocalAddr - the local address the socket is bound tolocalPort - the local port the socket is bound to
IOException - if an I/O error occurs when creating the socket.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||