|
||||||||||
| 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
public class 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. |
boolean |
getAllowTrace()
|
int |
getBufferSizeBytes()
Gets the size of the buffer used to handle network data for this connector. |
String |
getCompressableMimeType()
|
String |
getCompression()
|
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()
|
String |
getNoCompressionUserAgents()
|
int |
getPort()
Gets the network port that this connector listens on. |
String |
getProtocol()
Gets the network protocol that this connector handles. |
String |
getProxyName()
|
int |
getProxyPort()
|
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. |
String |
getRestrictedUserAgents()
|
String |
getScheme()
|
String |
getServer()
|
int |
getSocketBuffer()
|
String |
getStrategy()
|
int |
getThreadPriority()
|
String |
getUriEncoding()
|
boolean |
getUseBodyEncodingForURI()
|
boolean |
getUseIPVHosts()
|
boolean |
getXpoweredBy()
|
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 |
setAllowTrace(boolean allow)
|
void |
setBufferSizeBytes(int bytes)
Gets the size of the buffer used to handle network data for this connector. |
void |
setCompressableMimeType(String compressableMimeType)
|
void |
setCompression(String compression)
|
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 |
setNoCompressionUserAgents(String noCompressionUserAgents)
|
void |
setPort(int port)
Sets the network port that this connector listens on. |
void |
setProxyName(String proxyName)
|
void |
setProxyPort(int port)
|
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 |
setRestrictedUserAgents(String restrictedUserAgents)
|
void |
setScheme(String scheme)
|
void |
setServer(String server)
|
void |
setSocketBuffer(int kbytes)
|
void |
setStrategy(String strategy)
|
void |
setTcpNoDelay(boolean enable)
Sets whether the TCP_NODELAY flag is set for the sockets used by this connector. |
void |
setThreadPriority(int threadPriority)
|
void |
setUploadTimeoutEnabled(boolean enabled)
|
void |
setUriEncoding(String encoding)
|
void |
setUseBodyEncodingForURI(boolean enabled)
|
void |
setUseIPVHosts(boolean useIPVHosts)
|
void |
setXpoweredBy(boolean xpoweredBy)
|
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
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.GBeanLifecycleorg.apache.catalina.LifecycleExceptionpublic void doStop()
doStop in interface org.apache.geronimo.gbean.GBeanLifecyclepublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecyclepublic int getDefaultPort()
public String getConnectUrl()
getConnectUrl in interface org.apache.geronimo.management.geronimo.WebConnectorpublic boolean isEmptySessionPath()
isEmptySessionPath in interface TomcatWebConnectorpublic void setEmptySessionPath(boolean emptySessionPath)
setEmptySessionPath in interface TomcatWebConnectorpublic String getProtocol()
getProtocol in interface org.apache.geronimo.management.geronimo.NetworkConnectorpublic int getPort()
getPort in interface org.apache.geronimo.management.geronimo.NetworkConnectorpublic void setPort(int port)
setPort in interface org.apache.geronimo.management.geronimo.NetworkConnectorpublic 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.NetworkConnectorUnknownHostExceptionpublic InetSocketAddress getListenAddress()
getListenAddress in interface org.apache.geronimo.management.geronimo.NetworkConnectorpublic int getBufferSizeBytes()
getBufferSizeBytes in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setBufferSizeBytes(int bytes)
setBufferSizeBytes in interface org.apache.geronimo.management.geronimo.WebConnectorpublic int getMaxThreads()
getMaxThreads in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setMaxThreads(int threads)
setMaxThreads in interface org.apache.geronimo.management.geronimo.WebConnectorpublic int getAcceptQueueSize()
getAcceptQueueSize in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setAcceptQueueSize(int size)
setAcceptQueueSize in interface org.apache.geronimo.management.geronimo.WebConnectorpublic int getLingerMillis()
getLingerMillis in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setLingerMillis(int millis)
setLingerMillis in interface org.apache.geronimo.management.geronimo.WebConnectorpublic boolean isTcpNoDelay()
isTcpNoDelay in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setTcpNoDelay(boolean enable)
setTcpNoDelay in interface org.apache.geronimo.management.geronimo.WebConnectorpublic int getRedirectPort()
getRedirectPort in interface org.apache.geronimo.management.geronimo.WebConnectorpublic void setRedirectPort(int port)
setRedirectPort in interface org.apache.geronimo.management.geronimo.WebConnectorpublic int getMinSpareThreads()
getMinSpareThreads in interface TomcatWebConnectorpublic void setMinSpareThreads(int threads)
setMinSpareThreads in interface TomcatWebConnectorpublic int getMaxSpareThreads()
getMaxSpareThreads in interface TomcatWebConnectorpublic void setMaxSpareThreads(int threads)
setMaxSpareThreads in interface TomcatWebConnectorpublic int getMaxHttpHeaderSizeBytes()
getMaxHttpHeaderSizeBytes in interface TomcatWebConnectorpublic void setMaxHttpHeaderSizeBytes(int bytes)
setMaxHttpHeaderSizeBytes in interface TomcatWebConnectorpublic boolean isHostLookupEnabled()
isHostLookupEnabled in interface TomcatWebConnectorpublic void setHostLookupEnabled(boolean enabled)
setHostLookupEnabled in interface TomcatWebConnectorpublic int getConnectionTimeoutMillis()
getConnectionTimeoutMillis in interface TomcatWebConnectorpublic void setConnectionTimeoutMillis(int millis)
setConnectionTimeoutMillis in interface TomcatWebConnectorpublic boolean isUploadTimeoutEnabled()
isUploadTimeoutEnabled in interface TomcatWebConnectorpublic void setUploadTimeoutEnabled(boolean enabled)
setUploadTimeoutEnabled in interface TomcatWebConnectorpublic int getMaxPostSize()
getMaxPostSize in interface TomcatWebConnectorpublic void setMaxPostSize(int bytes)
setMaxPostSize in interface TomcatWebConnectorpublic int getMaxSavePostSize()
getMaxSavePostSize in interface TomcatWebConnectorpublic void setMaxSavePostSize(int kbytes)
setMaxSavePostSize in interface TomcatWebConnectorpublic int getMaxKeepAliveRequests()
getMaxKeepAliveRequests in interface TomcatWebConnectorpublic void setMaxKeepAliveRequests(int maxKeepAliveRequests)
setMaxKeepAliveRequests in interface TomcatWebConnectorpublic int getSocketBuffer()
getSocketBuffer in interface TomcatWebConnectorpublic void setSocketBuffer(int kbytes)
setSocketBuffer in interface TomcatWebConnectorpublic boolean getUseBodyEncodingForURI()
getUseBodyEncodingForURI in interface TomcatWebConnectorpublic void setUseBodyEncodingForURI(boolean enabled)
setUseBodyEncodingForURI in interface TomcatWebConnectorpublic void setAllowTrace(boolean allow)
setAllowTrace in interface TomcatWebConnectorpublic boolean getAllowTrace()
getAllowTrace in interface TomcatWebConnectorpublic void setProxyName(String proxyName)
setProxyName in interface TomcatWebConnectorpublic String getProxyName()
getProxyName in interface TomcatWebConnectorpublic void setProxyPort(int port)
setProxyPort in interface TomcatWebConnectorpublic int getProxyPort()
getProxyPort in interface TomcatWebConnectorpublic void setScheme(String scheme)
setScheme in interface TomcatWebConnectorpublic String getScheme()
getScheme in interface TomcatWebConnectorpublic void setUriEncoding(String encoding)
setUriEncoding in interface TomcatWebConnectorpublic String getUriEncoding()
getUriEncoding in interface TomcatWebConnectorpublic void setUseIPVHosts(boolean useIPVHosts)
setUseIPVHosts in interface TomcatWebConnectorpublic boolean getUseIPVHosts()
getUseIPVHosts in interface TomcatWebConnectorpublic void setXpoweredBy(boolean xpoweredBy)
setXpoweredBy in interface TomcatWebConnectorpublic boolean getXpoweredBy()
getXpoweredBy in interface TomcatWebConnectorpublic void setCompressableMimeType(String compressableMimeType)
setCompressableMimeType in interface TomcatWebConnectorpublic String getCompressableMimeType()
getCompressableMimeType in interface TomcatWebConnectorpublic void setCompression(String compression)
setCompression in interface TomcatWebConnectorpublic String getCompression()
getCompression in interface TomcatWebConnectorpublic void setNoCompressionUserAgents(String noCompressionUserAgents)
setNoCompressionUserAgents in interface TomcatWebConnectorpublic String getNoCompressionUserAgents()
getNoCompressionUserAgents in interface TomcatWebConnectorpublic void setRestrictedUserAgents(String restrictedUserAgents)
setRestrictedUserAgents in interface TomcatWebConnectorpublic String getRestrictedUserAgents()
getRestrictedUserAgents in interface TomcatWebConnectorpublic void setThreadPriority(int threadPriority)
setThreadPriority in interface TomcatWebConnectorpublic int getThreadPriority()
getThreadPriority in interface TomcatWebConnectorpublic void setServer(String server)
setServer in interface TomcatWebConnectorpublic String getServer()
getServer in interface TomcatWebConnectorpublic void setStrategy(String strategy)
setStrategy in interface TomcatWebConnectorpublic String getStrategy()
getStrategy in interface TomcatWebConnectorpublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||