|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.common.net.SocketFactory
public abstract class SocketFactory
This class wraps multiples implementations of the java.net.Socket class.
Field Summary | |
---|---|
static java.lang.String |
DefaultFactory
The default implementation of the SocketFactory interface is for JDK since 1.4. |
private static SocketFactory |
factory
|
private static java.lang.String[] |
factoryClasses
|
(package private) static org.objectweb.util.monolog.api.Logger |
logger
Logger statique des objets de la classe SocketFactory. |
Constructor Summary | |
---|---|
SocketFactory()
|
Method Summary | |
---|---|
abstract java.net.Socket |
createSocket(java.net.InetAddress addr,
int port,
java.net.InetAddress localAddr,
int localPort,
int timeout)
Creates a socket and connects it to the specified remote host on the specified remote port. |
abstract java.net.Socket |
createSocket(java.net.InetAddress addr,
int port,
int timeout)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
static SocketFactory |
getDefaultFactory()
Returns the SocketFactory singleton for the specified default class. |
static SocketFactory |
getFactory(java.lang.String sfcn)
Returns the SocketFactory singleton for the specified class. |
static SocketFactory |
getSocketFactory()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static org.objectweb.util.monolog.api.Logger logger
public static final java.lang.String DefaultFactory
private static java.lang.String[] factoryClasses
private static SocketFactory factory
Constructor Detail |
---|
public SocketFactory()
Method Detail |
---|
public static SocketFactory getDefaultFactory()
public static SocketFactory getFactory(java.lang.String sfcn)
The
- classname for SocketFactory class.
public abstract java.net.Socket createSocket(java.net.InetAddress addr, int port, int timeout) throws java.io.IOException
addr
- the IP address.port
- the port number.timeout
- the timeout value to be used in milliseconds.
java.io.IOException
public abstract java.net.Socket createSocket(java.net.InetAddress addr, int port, java.net.InetAddress localAddr, int localPort, int timeout) throws java.io.IOException
addr
- the IP address of the remote hostport
- the remote portlocalAddr
- the local address the socket is bound tolocalPort
- the local port the socket is bound totimeout
- the timeout value to be used in milliseconds.
java.io.IOException
public static SocketFactory getSocketFactory() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |