Methods Summary |
---|
public java.net.ServerSocket | createServerSocket()Creates a new server socket which is not bound to any local address. This
method has to be overridden by a subclass otherwise a {@code
SocketException} is thrown.
// follow RI's behavior
throw new SocketException("Unbound server sockets not implemented");
|
public abstract java.net.ServerSocket | createServerSocket(int port)Creates a new server socket which is bound to the given port.
|
public abstract java.net.ServerSocket | createServerSocket(int port, int backlog)Creates a new server socket which is bound to the given port and
configures its maximum of queued connections.
|
public abstract java.net.ServerSocket | createServerSocket(int port, int backlog, java.net.InetAddress iAddress)Creates a new server socket which is bound to the given address on the
specified port and configures its maximum of queued connections.
|
public static synchronized javax.net.ServerSocketFactory | getDefault()Gets the default server socket factory of the system which can be used to
create new server sockets without creating a subclass of this factory.
if (defaultFactory == null) {
defaultFactory = new DefaultServerSocketFactory();
}
return defaultFactory;
|