|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.tomcat.BaseGBean
org.apache.geronimo.tomcat.ConnectorGBean
Field Summary | |
protected org.apache.catalina.connector.Connector |
connector
|
static String |
CONNECTOR_CONTAINER_REFERENCE
|
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
ConnectorGBean(String name,
String protocol,
String host,
int port,
TomcatContainer container)
|
Method Summary | |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
int |
getAcceptQueueSize()
Gets the maximum number of connections that may be queued while all threads are busy. |
int |
getBufferSizeBytes()
Gets the size of the buffer used to handle network data for this connector. |
int |
getConnectionTimeoutMillis()
|
String |
getConnectUrl()
|
int |
getDefaultPort()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
String |
getHost()
Gets the hostname/IP that this connector listens on. |
Object |
getInternalObject()
|
int |
getLingerMillis()
Gets the amount of time the socket used by this connector will linger after being closed. |
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 |
getMaxHttpHeaderSizeBytes()
|
int |
getMaxKeepAliveRequests()
|
int |
getMaxPostSize()
|
int |
getMaxSavePostSize()
|
int |
getMaxSpareThreads()
|
int |
getMaxThreads()
Gets the maximum number of threads used to service connections from this connector. |
int |
getMinSpareThreads()
|
String |
getName()
|
int |
getPort()
Gets the network port that this connector listens on. |
String |
getProtocol()
Gets the network protocol that this connector handles. |
int |
getRedirectPort()
Gets the network port to which traffic will be redirected if this connector handles insecure traffic and the request requires a secure connection. |
int |
getSocketBuffer()
|
boolean |
getUseBodyEncodingForURI()
|
protected void |
initializeParams(String protocol,
Map params)
Adds any special parameters before constructing the connector. |
boolean |
isEmptySessionPath()
|
boolean |
isHostLookupEnabled()
|
boolean |
isTcpNoDelay()
Gets whether the TCP_NODELAY flag is set for the sockets used by this connector. |
boolean |
isUploadTimeoutEnabled()
|
void |
setAcceptQueueSize(int size)
Sets the maximum number of connections that may be queued while all threads are busy. |
void |
setBufferSizeBytes(int bytes)
Gets the size of the buffer used to handle network data for this connector. |
void |
setConnectionTimeoutMillis(int millis)
|
void |
setEmptySessionPath(boolean emptySessionPath)
|
void |
setHost(String host)
Sets the hostname/IP that this connector listens on. |
void |
setHostLookupEnabled(boolean enabled)
|
void |
setLingerMillis(int millis)
Sets the amount of time the socket used by this connector will linger after being closed. |
void |
setMaxHttpHeaderSizeBytes(int bytes)
|
void |
setMaxKeepAliveRequests(int maxKeepAliveRequests)
|
void |
setMaxPostSize(int bytes)
|
void |
setMaxSavePostSize(int kbytes)
|
void |
setMaxSpareThreads(int threads)
|
void |
setMaxThreads(int threads)
Sets the maximum number of threads used to service connections from this connector. |
void |
setMinSpareThreads(int threads)
|
void |
setPort(int port)
Sets the network port that this connector listens on. |
void |
setRedirectPort(int port)
Gets the network port to which traffic will be redirected if this connector handles insecure traffic and the request requires a secure connection. |
void |
setSocketBuffer(int kbytes)
|
void |
setTcpNoDelay(boolean enable)
Sets whether the TCP_NODELAY flag is set for the sockets used by this connector. |
void |
setUploadTimeoutEnabled(boolean enabled)
|
void |
setUseBodyEncodingForURI(boolean enabled)
|
protected void |
validateProtocol(String protocol)
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 |
Field Detail |
public static final String CONNECTOR_CONTAINER_REFERENCE
protected final org.apache.catalina.connector.Connector connector
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public ConnectorGBean(String name, String protocol, String host, int port, TomcatContainer container) throws Exception
Method Detail |
protected void initializeParams(String protocol, Map params)
protocol
- Should be one of the constants from WebContainer.params
- The map of parameters that will be used to initialize the connector.protected void validateProtocol(String protocol)
protocol
- public String getName()
public Object getInternalObject()
getInternalObject
in interface ObjectRetriever
public void doStart() throws org.apache.catalina.LifecycleException
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
org.apache.catalina.LifecycleException
public void doStop()
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public int getDefaultPort()
public String getConnectUrl()
getConnectUrl
in interface org.apache.geronimo.management.geronimo.WebConnector
public boolean isEmptySessionPath()
isEmptySessionPath
in interface TomcatWebConnector
public void setEmptySessionPath(boolean emptySessionPath)
setEmptySessionPath
in interface TomcatWebConnector
public String getProtocol()
getProtocol
in interface org.apache.geronimo.management.geronimo.NetworkConnector
public int getPort()
getPort
in interface org.apache.geronimo.management.geronimo.NetworkConnector
public void setPort(int port)
setPort
in interface org.apache.geronimo.management.geronimo.NetworkConnector
public String getHost()
getHost
in interface org.apache.geronimo.management.geronimo.NetworkConnector
public void setHost(String host) throws UnknownHostException
setHost
in interface org.apache.geronimo.management.geronimo.NetworkConnector
UnknownHostException
public InetSocketAddress getListenAddress()
getListenAddress
in interface org.apache.geronimo.management.geronimo.NetworkConnector
public int getBufferSizeBytes()
getBufferSizeBytes
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setBufferSizeBytes(int bytes)
setBufferSizeBytes
in interface org.apache.geronimo.management.geronimo.WebConnector
public int getMaxThreads()
getMaxThreads
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setMaxThreads(int threads)
setMaxThreads
in interface org.apache.geronimo.management.geronimo.WebConnector
public int getAcceptQueueSize()
getAcceptQueueSize
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setAcceptQueueSize(int size)
setAcceptQueueSize
in interface org.apache.geronimo.management.geronimo.WebConnector
public int getLingerMillis()
getLingerMillis
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setLingerMillis(int millis)
setLingerMillis
in interface org.apache.geronimo.management.geronimo.WebConnector
public boolean isTcpNoDelay()
isTcpNoDelay
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setTcpNoDelay(boolean enable)
setTcpNoDelay
in interface org.apache.geronimo.management.geronimo.WebConnector
public int getRedirectPort()
getRedirectPort
in interface org.apache.geronimo.management.geronimo.WebConnector
public void setRedirectPort(int port)
setRedirectPort
in interface org.apache.geronimo.management.geronimo.WebConnector
public int getMinSpareThreads()
getMinSpareThreads
in interface TomcatWebConnector
public void setMinSpareThreads(int threads)
setMinSpareThreads
in interface TomcatWebConnector
public int getMaxSpareThreads()
getMaxSpareThreads
in interface TomcatWebConnector
public void setMaxSpareThreads(int threads)
setMaxSpareThreads
in interface TomcatWebConnector
public int getMaxHttpHeaderSizeBytes()
getMaxHttpHeaderSizeBytes
in interface TomcatWebConnector
public void setMaxHttpHeaderSizeBytes(int bytes)
setMaxHttpHeaderSizeBytes
in interface TomcatWebConnector
public boolean isHostLookupEnabled()
isHostLookupEnabled
in interface TomcatWebConnector
public void setHostLookupEnabled(boolean enabled)
setHostLookupEnabled
in interface TomcatWebConnector
public int getConnectionTimeoutMillis()
getConnectionTimeoutMillis
in interface TomcatWebConnector
public void setConnectionTimeoutMillis(int millis)
setConnectionTimeoutMillis
in interface TomcatWebConnector
public boolean isUploadTimeoutEnabled()
isUploadTimeoutEnabled
in interface TomcatWebConnector
public void setUploadTimeoutEnabled(boolean enabled)
setUploadTimeoutEnabled
in interface TomcatWebConnector
public int getMaxPostSize()
getMaxPostSize
in interface TomcatWebConnector
public void setMaxPostSize(int bytes)
setMaxPostSize
in interface TomcatWebConnector
public int getMaxSavePostSize()
getMaxSavePostSize
in interface TomcatWebConnector
public void setMaxSavePostSize(int kbytes)
setMaxSavePostSize
in interface TomcatWebConnector
public int getMaxKeepAliveRequests()
getMaxKeepAliveRequests
in interface TomcatWebConnector
public void setMaxKeepAliveRequests(int maxKeepAliveRequests)
setMaxKeepAliveRequests
in interface TomcatWebConnector
public int getSocketBuffer()
getSocketBuffer
in interface TomcatWebConnector
public void setSocketBuffer(int kbytes)
setSocketBuffer
in interface TomcatWebConnector
public boolean getUseBodyEncodingForURI()
getUseBodyEncodingForURI
in interface TomcatWebConnector
public void setUseBodyEncodingForURI(boolean enabled)
setUseBodyEncodingForURI
in interface TomcatWebConnector
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |