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

DefaultServerSocketFactory

public final class DefaultServerSocketFactory extends Object implements org.apache.catalina.net.ServerSocketFactory
Default server socket factory, which returns unadorned server sockets.
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)


        return (new ServerSocket(port));

    
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)


        return (new ServerSocket(port, backlog));

    
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)


        return (new ServerSocket(port, backlog, ifAddress));