org.apache.geronimo.tomcat.connector
Class ConnectorGBean

java.lang.Object
  extended by org.apache.geronimo.tomcat.BaseGBean
      extended by 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


Field Summary
protected  org.apache.catalina.connector.Connector connector
           
static String CONNECTOR_CONTAINER_REFERENCE
           
static GBeanInfo GBEAN_INFO
           
protected  ServerInfo serverInfo
           
 
Constructor Summary
ConnectorGBean(String name, Map initParams, String tomcatProtocol, TomcatContainer container, ServerInfo serverInfo)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 boolean getAllowTrace()
           
abstract  int getDefaultPort()
           
 boolean getEmptySessionPath()
           
 boolean getEnableLookups()
           
static GBeanInfo getGBeanInfo()
           
abstract  String getGeronimoProtocol()
           
 Object getInternalObject()
           
 int getMaxPostSize()
           
 int getMaxSavePostSize()
           
 String getName()
           
 String getProtocol()
          Gets the network protocol that this connector handles.
 String getProxyName()
           
 int getProxyPort()
           
 int getRedirectPort()
           
 String getScheme()
           
 boolean getSecure()
           
 boolean getSslEnabled()
           
abstract  Stats getStats()
           
 String getTomcatProtocol()
           
 String getUriEncoding()
           
 boolean getUseBodyEncodingForURI()
           
 boolean getUseIPVHosts()
           
 boolean getXpoweredBy()
           
abstract  void resetStats()
           
 void setAllowTrace(boolean allow)
           
 void setEmptySessionPath(boolean emptySessionPath)
           
 void setEnableLookups(boolean enabled)
           
 void setMaxPostSize(int bytes)
           
 void setMaxSavePostSize(int maxSavePostSize)
           
 void setProxyName(String proxyName)
           
 void setProxyPort(int port)
           
 void setRedirectPort(int port)
           
 void setScheme(String scheme)
           
 void setSecure(boolean secure)
           
 void setSslEnabled(boolean sslEnabled)
           
 void setUriEncoding(String uriEncoding)
           
 void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
           
 void setUseIPVHosts(boolean useIPVHosts)
           
 void setXpoweredBy(boolean xpoweredBy)
           
protected  String validateProtocol(String tomcatProtocol)
          Ensures that this implementation can handle the requested protocol.
 
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
 
Methods inherited from interface org.apache.geronimo.tomcat.connector.TomcatWebConnector
getConnectUrl
 
Methods inherited from interface org.apache.geronimo.management.geronimo.NetworkConnector
getHost, getListenAddress, getPort, setHost, setPort
 

Field Detail

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
Constructor Detail

ConnectorGBean

public ConnectorGBean(String name,
                      Map initParams,
                      String tomcatProtocol,
                      TomcatContainer container,
                      ServerInfo serverInfo)
               throws Exception
Throws:
Exception
Method Detail

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.