DefaultServerSocketFactorypublic final class DefaultServerSocketFactory extends Object implements org.apache.catalina.net.ServerSocketFactoryDefault server socket factory, which returns unadorned server sockets. |
Methods Summary |
---|
public java.net.ServerSocket | createSocket(int port)Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port. The socket is
configured with the socket options (such as accept timeout)
given to this factory.
return (new ServerSocket(port));
| public java.net.ServerSocket | createSocket(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. The socket is configured with
the socket options (such as accept timeout) given to this factory.
return (new ServerSocket(port, backlog));
| public java.net.ServerSocket | createSocket(int port, int backlog, java.net.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. The socket is configured
with the socket options (such as accept timeout) given to this factory.
return (new ServerSocket(port, backlog, ifAddress));
|
|