org.apache.catalina.net

Class DefaultServerSocketFactory

Implemented Interfaces:
ServerSocketFactory

public final class DefaultServerSocketFactory
extends java.lang.Object
implements ServerSocketFactory

Default server socket factory, which returns unadorned server sockets.

Authors:
db@eng.sun.com
Harish Prabandham
Craig R. McClanahan

Method Summary

ServerSocket
createSocket(int port)
Returns a server socket which uses all network interfaces on the host, and is bound to a the specified port.
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.
ServerSocket
createSocket(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.

Method Details

createSocket

public ServerSocket createSocket(int port)
            throws IOException,
                   KeyStoreException,
                   NoSuchAlgorithmException,
                   CertificateException,
                   UnrecoverableKeyException,
                   KeyManagementException
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.
Specified by:
createSocket in interface ServerSocketFactory

Parameters:
port - the port to listen to


createSocket

public ServerSocket createSocket(int port,
                                 int backlog)
            throws IOException,
                   KeyStoreException,
                   NoSuchAlgorithmException,
                   CertificateException,
                   UnrecoverableKeyException,
                   KeyManagementException
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.
Specified by:
createSocket in interface ServerSocketFactory

Parameters:
port - the port to listen to
backlog - how many connections are queued


createSocket

public ServerSocket createSocket(int port,
                                 int backlog,
                                 InetAddress ifAddress)
            throws IOException,
                   KeyStoreException,
                   NoSuchAlgorithmException,
                   CertificateException,
                   UnrecoverableKeyException,
                   KeyManagementException
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.
Specified by:
createSocket in interface ServerSocketFactory

Parameters:
port - the port to listen to
backlog - how many connections are queued
ifAddress - the network interface address to use


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.