Save This Page
Home » glassfish-v2ur2-b04-src » org.apache.catalina.net » [javadoc | source]
org.apache.catalina.net
public interface: ServerSocketFactory [javadoc | source]

All Known Implementing Classes:
    SSLSocketFactory, CoyoteServerSocketFactory, DefaultServerSocketFactory, CoyoteServerSocketFactory

Interface that describes the common characteristics of factory classes that create server sockets which may be required by a Connector. A concrete implementation of this interface will be assigned to a Connector via the setFactory() method.
Method from org.apache.catalina.net.ServerSocketFactory Summary:
createSocket,   createSocket,   createSocket
Method from org.apache.catalina.net.ServerSocketFactory Detail:
 public ServerSocket createSocket(int port) throws IOException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, CertificateException, UnrecoverableKeyException
    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.
 public ServerSocket createSocket(int port,
    int backlog) throws IOException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, CertificateException, UnrecoverableKeyException
    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.
 public ServerSocket createSocket(int port,
    int backlog,
    InetAddress ifAddress) throws IOException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, CertificateException, UnrecoverableKeyException
    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.