|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.net.ServerSocketFactory
This class creates server sockets. It may be subclassed by other factories, which create particular types of server sockets. This provides a general framework for the addition of public socket-level functionality. It it is the server side analogue of a socket factory, and similarly provides a way to capture a variety of policies related to the sockets being constructed.
Like socket factories, Server Socket factory instances have methods used to create sockets. There is also an environment specific default server socket factory; frameworks will often use their own customized factory.
Constructor Summary | |
protected |
ServerSocketFactory()
Constructor is used only by subclasses. |
Method Summary | |
abstract ServerSocket |
createServerSocket(int port)
Returns a server socket which uses all network interfaces on the host, and is bound to the specified port. |
abstract ServerSocket |
createServerSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on the host, is bound to a the specified port, and uses the specified connection backlog. |
abstract ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network interface on the local host, is bound to a the specified port, and uses the specified connection backlog. |
static ServerSocketFactory |
getDefault()
Returns a copy of the environment's default server socket factory. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected ServerSocketFactory()
Method Detail |
public static ServerSocketFactory getDefault()
public abstract ServerSocket createServerSocket(int port) throws IOException
port
- the port to listen topublic abstract ServerSocket createServerSocket(int port, int backlog) throws IOException
port
- the port to listen tobacklog
- how many connections are queuedpublic abstract ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
port
- the port to listen tobacklog
- how many connections are queuedifAddress
- the network interface address to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |