org.apache.geronimo.tomcat.connector
Class ConnectorGBean
java.lang.Object
org.apache.geronimo.tomcat.BaseGBean
org.apache.geronimo.tomcat.connector.ConnectorGBean
- All Implemented Interfaces:
- GBeanLifecycle, NetworkConnector, CommonProtocol, TomcatWebConnector, ObjectRetriever
- Direct Known Subclasses:
- AJP13ConnectorGBean, BaseHttp11ConnectorGBean
public abstract class ConnectorGBean
- extends BaseGBean
- implements CommonProtocol, GBeanLifecycle, ObjectRetriever, TomcatWebConnector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONNECTOR_CONTAINER_REFERENCE
public static final String CONNECTOR_CONTAINER_REFERENCE
- See Also:
- Constant Field Values
serverInfo
protected final ServerInfo serverInfo
connector
protected final org.apache.catalina.connector.Connector connector
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
ConnectorGBean
public ConnectorGBean(String name,
Map initParams,
String tomcatProtocol,
TomcatContainer container,
ServerInfo serverInfo)
throws Exception
- Throws:
Exception
doFail
public void doFail()
- Description copied from interface:
GBeanLifecycle
- Fails the GBean. This informs the GBean that it is about to transition to the failed state.
- Specified by:
doFail
in interface GBeanLifecycle
doStart
public void doStart()
throws org.apache.catalina.LifecycleException
- Description copied from interface:
GBeanLifecycle
- Starts the GBean. This informs the GBean that it is about to transition to the running state.
- Specified by:
doStart
in interface GBeanLifecycle
- Throws:
org.apache.catalina.LifecycleException
doStop
public void doStop()
- Description copied from interface:
GBeanLifecycle
- Stops the target. This informs the GBean that it is about to transition to the stopped state.
- Specified by:
doStop
in interface GBeanLifecycle
validateProtocol
protected String validateProtocol(String tomcatProtocol)
- Ensures that this implementation can handle the requested protocol.
- Parameters:
protocol
-
getDefaultPort
public abstract int getDefaultPort()
getGeronimoProtocol
public abstract String getGeronimoProtocol()
getStats
public abstract Stats getStats()
resetStats
public abstract void resetStats()
getInternalObject
public Object getInternalObject()
- Specified by:
getInternalObject
in interface ObjectRetriever
getName
public String getName()
setAllowTrace
public void setAllowTrace(boolean allow)
- Specified by:
setAllowTrace
in interface CommonProtocol
getAllowTrace
public boolean getAllowTrace()
- Specified by:
getAllowTrace
in interface CommonProtocol
setEmptySessionPath
public void setEmptySessionPath(boolean emptySessionPath)
- Specified by:
setEmptySessionPath
in interface CommonProtocol
setEnableLookups
public void setEnableLookups(boolean enabled)
- Specified by:
setEnableLookups
in interface CommonProtocol
getMaxPostSize
public int getMaxPostSize()
- Specified by:
getMaxPostSize
in interface CommonProtocol
setMaxPostSize
public void setMaxPostSize(int bytes)
- Specified by:
setMaxPostSize
in interface CommonProtocol
getProtocol
public String getProtocol()
- Description copied from interface:
NetworkConnector
- Gets the network protocol that this connector handles.
- Specified by:
getProtocol
in interface NetworkConnector
- Specified by:
getProtocol
in interface CommonProtocol
getTomcatProtocol
public String getTomcatProtocol()
- Specified by:
getTomcatProtocol
in interface CommonProtocol
getProxyName
public String getProxyName()
- Specified by:
getProxyName
in interface CommonProtocol
getProxyPort
public int getProxyPort()
- Specified by:
getProxyPort
in interface CommonProtocol
getRedirectPort
public int getRedirectPort()
- Specified by:
getRedirectPort
in interface CommonProtocol
getScheme
public String getScheme()
- Specified by:
getScheme
in interface CommonProtocol
getSecure
public boolean getSecure()
- Specified by:
getSecure
in interface CommonProtocol
getUriEncoding
public String getUriEncoding()
- Specified by:
getUriEncoding
in interface CommonProtocol
getUseBodyEncodingForURI
public boolean getUseBodyEncodingForURI()
- Specified by:
getUseBodyEncodingForURI
in interface CommonProtocol
getUseIPVHosts
public boolean getUseIPVHosts()
- Specified by:
getUseIPVHosts
in interface CommonProtocol
setMaxSavePostSize
public void setMaxSavePostSize(int maxSavePostSize)
- Specified by:
setMaxSavePostSize
in interface CommonProtocol
setProxyName
public void setProxyName(String proxyName)
- Specified by:
setProxyName
in interface CommonProtocol
setProxyPort
public void setProxyPort(int port)
- Specified by:
setProxyPort
in interface CommonProtocol
setRedirectPort
public void setRedirectPort(int port)
- Specified by:
setRedirectPort
in interface CommonProtocol
setScheme
public void setScheme(String scheme)
- Specified by:
setScheme
in interface CommonProtocol
setSecure
public void setSecure(boolean secure)
- Specified by:
setSecure
in interface CommonProtocol
getSslEnabled
public boolean getSslEnabled()
- Specified by:
getSslEnabled
in interface CommonProtocol
setSslEnabled
public void setSslEnabled(boolean sslEnabled)
- Specified by:
setSslEnabled
in interface CommonProtocol
setUriEncoding
public void setUriEncoding(String uriEncoding)
- Specified by:
setUriEncoding
in interface CommonProtocol
setUseBodyEncodingForURI
public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
- Specified by:
setUseBodyEncodingForURI
in interface CommonProtocol
setUseIPVHosts
public void setUseIPVHosts(boolean useIPVHosts)
- Specified by:
setUseIPVHosts
in interface CommonProtocol
setXpoweredBy
public void setXpoweredBy(boolean xpoweredBy)
- Specified by:
setXpoweredBy
in interface CommonProtocol
getEnableLookups
public boolean getEnableLookups()
- Specified by:
getEnableLookups
in interface CommonProtocol
getMaxSavePostSize
public int getMaxSavePostSize()
- Specified by:
getMaxSavePostSize
in interface CommonProtocol
getEmptySessionPath
public boolean getEmptySessionPath()
- Specified by:
getEmptySessionPath
in interface CommonProtocol
getXpoweredBy
public boolean getXpoweredBy()
- Specified by:
getXpoweredBy
in interface CommonProtocol
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.