javax.net
Class ServerSocketFactory
java.lang.Object
|
+--javax.net.ServerSocketFactory
public abstract class ServerSocketFactory
extends java.lang.Object
A factory for server sockets. The purpose of this class is to serve
as the superclass of server socket factories that produce server
sockets of a particular type, such as Secure Socket Layer
(SSL) server sockets.
Author:- Casey Marshall (rsdio@metastatic.org)
ServerSocketFactory
protected ServerSocketFactory()
Default 0-argument constructor.
createServerSocket
public ServerSocket createServerSocket()
Create an unbound server socket.
Returns:
Throws:
- If a networking error occurs.
createServerSocket
public ServerSocket createServerSocket(int port)
Create a server socket bound to the given port.
Parameters:
Returns:
- A server socket bound to port.
Throws:
- If a networking error occurs.
createServerSocket
public ServerSocket createServerSocket(int port, int backlog)
Parameters:
createServerSocket
public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress)
Parameters:
getDefault
public static synchronized ServerSocketFactory getDefault()
Returns the default server socket factory. The type of factory
returned may depend upon the installation.
Returns:
- The default server socket factory.