FileDocCategorySizeDatePackage
ServerSocketFactory.javaAPI DocGlassfish v2 API6968Fri May 04 22:32:16 BST 2007org.apache.catalina.net

ServerSocketFactory

public interface ServerSocketFactory
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.
author
db@eng.sun.com
author
Harish Prabandham
author
Craig R. McClanahan

Fields Summary
Constructors Summary
Methods Summary
public java.net.ServerSocketcreateSocket(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.

param
port the port to listen to
exception
IOException input/output or network error
exception
KeyStoreException error instantiating the KeyStore from file (SSL only)
exception
NoSuchAlgorithmException KeyStore algorithm unsupported by current provider (SSL only)
exception
CertificateException general certificate error (SSL only)
exception
UnrecoverableKeyException internal KeyStore problem with the certificate (SSL only)
exception
KeyManagementException problem in the key management layer (SSL only)

public java.net.ServerSocketcreateSocket(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.

param
port the port to listen to
param
backlog how many connections are queued
exception
IOException input/output or network error
exception
KeyStoreException error instantiating the KeyStore from file (SSL only)
exception
NoSuchAlgorithmException KeyStore algorithm unsupported by current provider (SSL only)
exception
CertificateException general certificate error (SSL only)
exception
UnrecoverableKeyException internal KeyStore problem with the certificate (SSL only)
exception
KeyManagementException problem in the key management layer (SSL only)

public java.net.ServerSocketcreateSocket(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.

param
port the port to listen to
param
backlog how many connections are queued
param
ifAddress the network interface address to use
exception
IOException input/output or network error
exception
KeyStoreException error instantiating the KeyStore from file (SSL only)
exception
NoSuchAlgorithmException KeyStore algorithm unsupported by current provider (SSL only)
exception
CertificateException general certificate error (SSL only)
exception
UnrecoverableKeyException internal KeyStore problem with the certificate (SSL only)
exception
KeyManagementException problem in the key management layer (SSL only)