|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.common.net.ServerSocketFactory
public abstract class ServerSocketFactory
This class wraps multiples implementations of the java.net.Socket class.
Field Summary | |
---|---|
static java.lang.String |
DefaultFactory
The default implementation of the ServerSocketFactory interface is for JDK since 1.4. |
Constructor Summary | |
---|---|
ServerSocketFactory()
|
Method Summary | |
---|---|
abstract java.net.ServerSocket |
createServerSocket(int port,
int backlog)
Creates a server socket and binds it to the specified local port number, with the specified backlog. |
abstract java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress addr)
Create a server with the specified port, listen backlog, and local IP address to bind to. |
static ServerSocketFactory |
getDefaultFactory()
Returns the ServerSocketFactory singleton for the specified default class. |
static ServerSocketFactory |
getFactory(java.lang.String ssfcn)
Returns the ServerSocketFactory singleton for the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DefaultFactory
Constructor Detail |
---|
public ServerSocketFactory()
Method Detail |
---|
public static final ServerSocketFactory getDefaultFactory()
public static final ServerSocketFactory getFactory(java.lang.String ssfcn)
ssfcn
- The classname for SocketFactory class.
public abstract java.net.ServerSocket createServerSocket(int port, int backlog) throws java.io.IOException
port
- the specified port, or 0 to use any free port.backlog
- the maximum length of the queue, or 0 to use the default value.
java.io.IOException
ServerSocket.ServerSocket(int, int)
public abstract java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress addr) throws java.io.IOException
The addr argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. If addr is null, it will default accepting connections on any/all local addresses.
port
- the local TCP port, it must be between 0 and 65535, inclusive.backlog
- the maximum length of the queue, or 0 to use the default value.addr
- the local InetAddress the server will bind to
java.io.IOException
ServerSocket.ServerSocket(int, int, InetAddress)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |