org.apache.geronimo.tomcat.connector
Class BaseHttp11ConnectorGBean

java.lang.Object
  extended by org.apache.geronimo.tomcat.BaseGBean
      extended by org.apache.geronimo.tomcat.connector.ConnectorGBean
          extended by org.apache.geronimo.tomcat.connector.BaseHttp11ConnectorGBean
All Implemented Interfaces:
GBeanLifecycle, NetworkConnector, StatisticsProvider, BaseHttp11Protocol, CommonProtocol, TomcatWebConnector, ObjectRetriever
Direct Known Subclasses:
AbstractHttp11ConnectorGBean, Http11APRConnectorGBean

public abstract class BaseHttp11ConnectorGBean
extends ConnectorGBean
implements BaseHttp11Protocol, StatisticsProvider


Field Summary
protected  String connectHost
           
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.tomcat.connector.ConnectorGBean
connector, CONNECTOR_CONTAINER_REFERENCE, serverInfo
 
Constructor Summary
BaseHttp11ConnectorGBean(String name, Map initParams, String tomcatProtocol, String host, int port, TomcatContainer container, ServerInfo serverInfo)
           
 
Method Summary
 int getAcceptCount()
           
 String getAddress()
           
 int getBufferSize()
           
 String getCompressableMimeType()
           
 String getCompression()
           
 int getConnectionLinger()
           
 int getConnectionTimeout()
           
 String getConnectUrl()
           
abstract  int getDefaultPort()
           
 boolean getDisableUploadTimeout()
           
 String getExecutor()
           
static GBeanInfo getGBeanInfo()
           
 String getHost()
          Gets the hostname/IP that this connector listens on.
 int getKeepAliveTimeout()
           
 InetSocketAddress getListenAddress()
          Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup.
 int getMaxHttpHeaderSize()
           
 int getMaxKeepAliveRequests()
           
 int getMaxSpareThreads()
           
 int getMaxThreads()
           
 int getMinSpareThreads()
           
 String getNoCompressionUserAgents()
           
 int getPort()
          Gets the network port that this connector listens on.
 String getRestrictedUserAgents()
           
 String getServer()
           
 int getSocketBuffer()
           
 Stats getStats()
          Gets the statistics collected for this class.
 boolean getTcpNoDelay()
           
 int getThreadPriority()
           
protected  void initProtocol()
           
 boolean isStatisticsProvider()
           
 void resetStats()
          Reset the startTime for all statistics
 void setAcceptCount(int acceptCount)
           
 void setAddress(String address)
           
 void setBufferSize(int bufferSize)
           
 void setCompressableMimeType(String compressableMimeType)
           
 void setCompression(String compression)
           
 void setConnectionLinger(int connectionLinger)
           
 void setConnectionTimeout(int connectionTimeout)
           
 void setDisableUploadTimeout(boolean disableUploadTimeout)
           
 void setExecutor(String executor)
           
 void setHost(String host)
          Sets the hostname/IP that this connector listens on.
 void setKeepAliveTimeout(int keepAliveTimeout)
           
 void setMaxHttpHeaderSize(int maxHttpHeaderSize)
           
 void setMaxKeepAliveRequests(int maxKeepAliveRequests)
           
 void setMaxSpareThreads(int maxSpareThreads)
           
 void setMaxThreads(int maxThreads)
           
 void setMinSpareThreads(int minSpareThreads)
           
 void setNoCompressionUserAgents(String noCompressionUserAgents)
           
 void setPort(int port)
          Sets the network port that this connector listens on.
 void setRestrictedUserAgents(String restrictedUserAgents)
           
 void setServer(String server)
           
 void setSocketBuffer(int socketBuffer)
           
 void setTcpNoDelay(boolean tcpNoDelay)
           
 void setThreadPriority(int threadPriority)
           
 
Methods inherited from class org.apache.geronimo.tomcat.connector.ConnectorGBean
doFail, doStart, doStop, getAllowTrace, getEmptySessionPath, getEnableLookups, getGeronimoProtocol, getInternalObject, getMaxPostSize, getMaxSavePostSize, getName, getProtocol, getProxyName, getProxyPort, getRedirectPort, getScheme, getSecure, getSslEnabled, getTomcatProtocol, getUriEncoding, getUseBodyEncodingForURI, getUseIPVHosts, getXpoweredBy, setAllowTrace, setEmptySessionPath, setEnableLookups, setMaxPostSize, setMaxSavePostSize, setProxyName, setProxyPort, setRedirectPort, setScheme, setSecure, setSslEnabled, setUriEncoding, setUseBodyEncodingForURI, setUseIPVHosts, setXpoweredBy, validateProtocol
 
Methods inherited from class org.apache.geronimo.tomcat.BaseGBean
setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectHost

protected String connectHost

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

BaseHttp11ConnectorGBean

public BaseHttp11ConnectorGBean(String name,
                                Map initParams,
                                String tomcatProtocol,
                                String host,
                                int port,
                                TomcatContainer container,
                                ServerInfo serverInfo)
                         throws Exception
Throws:
Exception
Method Detail

initProtocol

protected void initProtocol()

getConnectUrl

public String getConnectUrl()
Specified by:
getConnectUrl in interface TomcatWebConnector

getDefaultPort

public abstract int getDefaultPort()
Specified by:
getDefaultPort in class ConnectorGBean

getAcceptCount

public int getAcceptCount()
Specified by:
getAcceptCount in interface BaseHttp11Protocol

getAddress

public String getAddress()
Specified by:
getAddress in interface BaseHttp11Protocol

getBufferSize

public int getBufferSize()
Specified by:
getBufferSize in interface BaseHttp11Protocol

getCompressableMimeType

public String getCompressableMimeType()
Specified by:
getCompressableMimeType in interface BaseHttp11Protocol

getCompression

public String getCompression()
Specified by:
getCompression in interface BaseHttp11Protocol

getConnectionLinger

public int getConnectionLinger()
Specified by:
getConnectionLinger in interface BaseHttp11Protocol

getConnectionTimeout

public int getConnectionTimeout()
Specified by:
getConnectionTimeout in interface BaseHttp11Protocol

getDisableUploadTimeout

public boolean getDisableUploadTimeout()
Specified by:
getDisableUploadTimeout in interface BaseHttp11Protocol

getExecutor

public String getExecutor()
Specified by:
getExecutor in interface BaseHttp11Protocol

getHost

public String getHost()
Description copied from interface: NetworkConnector
Gets the hostname/IP that this connector listens on.

Specified by:
getHost in interface NetworkConnector
Specified by:
getHost in interface BaseHttp11Protocol

getListenAddress

public InetSocketAddress getListenAddress()
Description copied from interface: NetworkConnector
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. However, this can be read-only since the host and port are set separately using setHost and setPort.

Specified by:
getListenAddress in interface NetworkConnector

getKeepAliveTimeout

public int getKeepAliveTimeout()
Specified by:
getKeepAliveTimeout in interface BaseHttp11Protocol

getMaxHttpHeaderSize

public int getMaxHttpHeaderSize()
Specified by:
getMaxHttpHeaderSize in interface BaseHttp11Protocol

getMaxKeepAliveRequests

public int getMaxKeepAliveRequests()
Specified by:
getMaxKeepAliveRequests in interface BaseHttp11Protocol

getMaxThreads

public int getMaxThreads()
Specified by:
getMaxThreads in interface BaseHttp11Protocol

getMaxSpareThreads

public int getMaxSpareThreads()
Specified by:
getMaxSpareThreads in interface BaseHttp11Protocol

getMinSpareThreads

public int getMinSpareThreads()
Specified by:
getMinSpareThreads in interface BaseHttp11Protocol

getNoCompressionUserAgents

public String getNoCompressionUserAgents()
Specified by:
getNoCompressionUserAgents in interface BaseHttp11Protocol

getPort

public int getPort()
Description copied from interface: NetworkConnector
Gets the network port that this connector listens on.

Specified by:
getPort in interface NetworkConnector
Specified by:
getPort in interface BaseHttp11Protocol

getRestrictedUserAgents

public String getRestrictedUserAgents()
Specified by:
getRestrictedUserAgents in interface BaseHttp11Protocol

getServer

public String getServer()
Specified by:
getServer in interface BaseHttp11Protocol

getSocketBuffer

public int getSocketBuffer()
Specified by:
getSocketBuffer in interface BaseHttp11Protocol

getTcpNoDelay

public boolean getTcpNoDelay()
Specified by:
getTcpNoDelay in interface BaseHttp11Protocol

getThreadPriority

public int getThreadPriority()
Specified by:
getThreadPriority in interface BaseHttp11Protocol

setAcceptCount

public void setAcceptCount(int acceptCount)
Specified by:
setAcceptCount in interface BaseHttp11Protocol

setAddress

public void setAddress(String address)
Specified by:
setAddress in interface BaseHttp11Protocol

setBufferSize

public void setBufferSize(int bufferSize)
Specified by:
setBufferSize in interface BaseHttp11Protocol

setCompressableMimeType

public void setCompressableMimeType(String compressableMimeType)
Specified by:
setCompressableMimeType in interface BaseHttp11Protocol

setCompression

public void setCompression(String compression)
Specified by:
setCompression in interface BaseHttp11Protocol

setConnectionLinger

public void setConnectionLinger(int connectionLinger)
Specified by:
setConnectionLinger in interface BaseHttp11Protocol

setConnectionTimeout

public void setConnectionTimeout(int connectionTimeout)
Specified by:
setConnectionTimeout in interface BaseHttp11Protocol

setDisableUploadTimeout

public void setDisableUploadTimeout(boolean disableUploadTimeout)
Specified by:
setDisableUploadTimeout in interface BaseHttp11Protocol

setExecutor

public void setExecutor(String executor)
Specified by:
setExecutor in interface BaseHttp11Protocol

setHost

public void setHost(String host)
Description copied from interface: NetworkConnector
Sets the hostname/IP that this connector listens on. This is typically most useful for machines with multiple network cards, but can be used to limit a connector to only listen for connections from the local machine (127.0.0.1). To listen on all available network interfaces, specify an address of 0.0.0.0.

Specified by:
setHost in interface NetworkConnector
Specified by:
setHost in interface BaseHttp11Protocol

setKeepAliveTimeout

public void setKeepAliveTimeout(int keepAliveTimeout)
Specified by:
setKeepAliveTimeout in interface BaseHttp11Protocol

setMaxHttpHeaderSize

public void setMaxHttpHeaderSize(int maxHttpHeaderSize)
Specified by:
setMaxHttpHeaderSize in interface BaseHttp11Protocol

setMaxKeepAliveRequests

public void setMaxKeepAliveRequests(int maxKeepAliveRequests)
Specified by:
setMaxKeepAliveRequests in interface BaseHttp11Protocol

setMaxThreads

public void setMaxThreads(int maxThreads)
Specified by:
setMaxThreads in interface BaseHttp11Protocol

setMaxSpareThreads

public void setMaxSpareThreads(int maxSpareThreads)
Specified by:
setMaxSpareThreads in interface BaseHttp11Protocol

setMinSpareThreads

public void setMinSpareThreads(int minSpareThreads)
Specified by:
setMinSpareThreads in interface BaseHttp11Protocol

setNoCompressionUserAgents

public void setNoCompressionUserAgents(String noCompressionUserAgents)
Specified by:
setNoCompressionUserAgents in interface BaseHttp11Protocol

setPort

public void setPort(int port)
Description copied from interface: NetworkConnector
Sets the network port that this connector listens on.

Specified by:
setPort in interface NetworkConnector
Specified by:
setPort in interface BaseHttp11Protocol

setRestrictedUserAgents

public void setRestrictedUserAgents(String restrictedUserAgents)
Specified by:
setRestrictedUserAgents in interface BaseHttp11Protocol

setServer

public void setServer(String server)
Specified by:
setServer in interface BaseHttp11Protocol

setSocketBuffer

public void setSocketBuffer(int socketBuffer)
Specified by:
setSocketBuffer in interface BaseHttp11Protocol

setTcpNoDelay

public void setTcpNoDelay(boolean tcpNoDelay)
Specified by:
setTcpNoDelay in interface BaseHttp11Protocol

setThreadPriority

public void setThreadPriority(int threadPriority)
Specified by:
setThreadPriority in interface BaseHttp11Protocol

isStatisticsProvider

public boolean isStatisticsProvider()

getStats

public Stats getStats()
Description copied from interface: StatisticsProvider
Gets the statistics collected for this class. The first call to this method initializes the startTime for all statistics.

Specified by:
getStats in interface StatisticsProvider
Specified by:
getStats in class ConnectorGBean
Returns:
gets collected for this class

resetStats

public void resetStats()
Description copied from interface: StatisticsProvider
Reset the startTime for all statistics

Specified by:
resetStats in interface StatisticsProvider
Specified by:
resetStats in class ConnectorGBean

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.