org.apache.coyote.tomcat4

Class CoyoteServerSocketFactory

Implemented Interfaces:
ServerSocketFactory

public class CoyoteServerSocketFactory
extends java.lang.Object
implements ServerSocketFactory

This socket factory holds secure socket factory parameters. Besides the usual configuration mechanism based on setting JavaBeans properties, this component may also be configured by passing a series of attributes set with calls to setAttribute(). The following attribute names are recognized, with default values in square brackets:

Authors:
Harish Prabandham
Costin Manolache
Craig 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.
String
getAlgorithm()
String
getClientAuth()
String
getKeystoreFile()
String
getKeystorePass()
String
getKeystoreType()
String
getProtocol()
String
getRandomFile()
String
getRootFile()
String
getSSLImplementation()
void
setAlgorithm(String algorithm)
void
setClientAuth(String clientAuth)
void
setKeystoreFile(String keystoreFile)
void
setKeystorePass(String keystorePass)
void
setKeystoreType(String keystoreType)
void
setProtocol(String protocol)
void
setRandomFile(String randomFile)
void
setRootFile(String rootFile)
void
setSSLImplementation(String sslImplementation)

Method Details

createSocket

public 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.
Specified by:
createSocket in interface ServerSocketFactory

Parameters:
port - the port to listen to


createSocket

public 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.
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)
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


getAlgorithm

public String getAlgorithm()


getClientAuth

public String getClientAuth()


getKeystoreFile

public String getKeystoreFile()


getKeystorePass

public String getKeystorePass()


getKeystoreType

public String getKeystoreType()


getProtocol

public String getProtocol()


getRandomFile

public String getRandomFile()


getRootFile

public String getRootFile()


getSSLImplementation

public String getSSLImplementation()


setAlgorithm

public void setAlgorithm(String algorithm)


setClientAuth

public void setClientAuth(String clientAuth)


setKeystoreFile

public void setKeystoreFile(String keystoreFile)


setKeystorePass

public void setKeystorePass(String keystorePass)


setKeystoreType

public void setKeystoreType(String keystoreType)


setProtocol

public void setProtocol(String protocol)


setRandomFile

public void setRandomFile(String randomFile)


setRootFile

public void setRootFile(String rootFile)


setSSLImplementation

public void setSSLImplementation(String sslImplementation)


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