|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.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 void setAllowTrace(boolean allow)
setAllowTrace
in interface TomcatWebConnector
public boolean getAllowTrace()
getAllowTrace
in interface TomcatWebConnector
public void setProxyName(String proxyName)
setProxyName
in interface TomcatWebConnector
public String getProxyName()
getProxyName
in interface TomcatWebConnector
public void setProxyPort(int port)
setProxyPort
in interface TomcatWebConnector
public int getProxyPort()
getProxyPort
in interface TomcatWebConnector
public void setScheme(String scheme)
setScheme
in interface TomcatWebConnector
public String getScheme()
getScheme
in interface TomcatWebConnector
public void setUriEncoding(String encoding)
setUriEncoding
in interface TomcatWebConnector
public String getUriEncoding()
getUriEncoding
in interface TomcatWebConnector
public void setUseIPVHosts(boolean useIPVHosts)
setUseIPVHosts
in interface TomcatWebConnector
public boolean getUseIPVHosts()
getUseIPVHosts
in interface TomcatWebConnector
public void setXpoweredBy(boolean xpoweredBy)
setXpoweredBy
in interface TomcatWebConnector
public boolean getXpoweredBy()
getXpoweredBy
in interface TomcatWebConnector
public void setCompressableMimeType(String compressableMimeType)
setCompressableMimeType
in interface TomcatWebConnector
public String getCompressableMimeType()
getCompressableMimeType
in interface TomcatWebConnector
public void setCompression(String compression)
setCompression
in interface TomcatWebConnector
public String getCompression()
getCompression
in interface TomcatWebConnector
public void setNoCompressionUserAgents(String noCompressionUserAgents)
setNoCompressionUserAgents
in interface TomcatWebConnector
public String getNoCompressionUserAgents()
getNoCompressionUserAgents
in interface TomcatWebConnector
public void setRestrictedUserAgents(String restrictedUserAgents)
setRestrictedUserAgents
in interface TomcatWebConnector
public String getRestrictedUserAgents()
getRestrictedUserAgents
in interface TomcatWebConnector
public void setThreadPriority(int threadPriority)
setThreadPriority
in interface TomcatWebConnector
public int getThreadPriority()
getThreadPriority
in interface TomcatWebConnector
public void setServer(String server)
setServer
in interface TomcatWebConnector
public String getServer()
getServer
in interface TomcatWebConnector
public void setStrategy(String strategy)
setStrategy
in interface TomcatWebConnector
public String getStrategy()
getStrategy
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 |