|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.tomcat5.CoyoteConnector
Implementation of a Coyote connector for Tomcat 5.x.
Field Summary | |
protected Container |
container
The Container used for processing requests received by this Connector. |
protected java.lang.String |
domain
|
protected LifecycleSupport |
lifecycle
The lifecycle event support for this component. |
protected int |
minProcessors
The minimum number of processors to start at initialization time. |
protected javax.management.MBeanServer |
mserver
|
protected javax.management.ObjectName |
oname
|
Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
CoyoteConnector()
|
Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Add a lifecycle event listener to this component. |
Request |
createRequest()
Create (or allocate) and return a Request object suitable for specifying the contents of a Request to the responsible Container. |
Response |
createResponse()
Create (or allocate) and return a Response object suitable for receiving the contents of a Response from the responsible Container. |
void |
destroy()
|
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
int |
getAcceptCount()
Return the accept count for this Connector. |
java.lang.String |
getAddress()
Return the bind IP address for this Connector. |
boolean |
getAllowTrace()
True if the TRACE method is allowed. |
int |
getBufferSize()
Return the input buffer size for this Connector. |
java.lang.String |
getCiphers()
Gets the list of SSL cipher suites that are to be enabled |
boolean |
getClientAuth()
|
java.lang.String |
getCompression()
Get the value of compression. |
int |
getConnectionLinger()
Return the connection linger for this Connector. |
int |
getConnectionTimeout()
Return the connection timeout for this Connector. |
int |
getConnectionUploadTimeout()
Return the connection upload timeout for this Connector. |
Container |
getContainer()
Return the Container used for processing requests received by this Connector. |
javax.management.ObjectName |
getController()
|
int |
getDebug()
Return the debugging detail level for this component. |
boolean |
getDisableUploadTimeout()
Return the flag that specifies upload time-out behavior. |
java.lang.String |
getDomain()
|
boolean |
getEnableLookups()
Return the "enable DNS lookups" flag. |
ServerSocketFactory |
getFactory()
Return the server socket factory used by this Container. |
java.lang.String |
getInfo()
Return descriptive information about this Connector implementation. |
boolean |
getKeepAlive()
Return the Keep-Alive policy for the connection. |
java.lang.String |
getKeyAlias()
Gets the alias name of the keypair and supporting certificate chain used by this Connector to authenticate itself to SSL clients. |
java.lang.String |
getKeystoreFile()
|
java.lang.String |
getKeystorePass()
Return keystorePass |
Mapper |
getMapper()
Return the mapper. |
int |
getMaxKeepAliveRequests()
Return the maximum number of Keep-Alive requests to honor per connection. |
int |
getMaxPostSize()
Return the maximum size of a POST which will be automatically parsed by the container. |
int |
getMaxProcessors()
Return the maximum number of processors allowed, or <0 for unlimited. |
int |
getMinProcessors()
Return the minimum number of processors to start at initialization. |
javax.management.ObjectName |
getObjectName()
|
int |
getPort()
Return the port number on which we listen for requests. |
java.lang.Object |
getProperty(java.lang.String name)
Return a configured property. |
java.lang.String |
getProtocol()
Return the Coyote protocol handler in use. |
ProtocolHandler |
getProtocolHandler()
Return the protocol handler associated with the connector. |
java.lang.String |
getProtocolHandlerClassName()
Return the class name of the Coyote protocol handler in use. |
java.lang.String |
getProxyName()
Return the proxy server name for this Connector. |
int |
getProxyPort()
Return the proxy server port for this Connector. |
int |
getRedirectPort()
Return the port number to which a request should be redirected if it comes in on a non-SSL port and is subject to a security constraint with a transport guarantee that requires SSL. |
java.lang.String |
getScheme()
Return the scheme that will be assigned to requests received through this connector. |
boolean |
getSecure()
Return the secure connection flag that will be assigned to requests received through this connector. |
int |
getServerSocketTimeout()
Return the server socket timeout for this Connector. |
Service |
getService()
Return the Service with which we are associated (if any). |
java.lang.String |
getSslProtocol()
Gets the SSL protocol variant to be used. |
java.lang.String |
getSslProtocols()
Gets the SSL protocol variants to be enabled. |
boolean |
getTcpNoDelay()
Return the TCP no delay flag value. |
boolean |
getTomcatAuthentication()
|
java.lang.String |
getURIEncoding()
Return the character encoding to be used for the URI. |
boolean |
getUseBodyEncodingForURI()
Return the true if the entity body encoding should be used for the URI. |
void |
init()
|
void |
initialize()
Initialize this connector (create ServerSocket here!) |
boolean |
isAvailable()
Is this connector available for processing requests? |
boolean |
isXpoweredBy()
Indicates whether the generation of an X-Powered-By response header for servlet-generated responses is enabled or disabled for this Connector. |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
removeLifecycleListener(LifecycleListener listener)
Remove a lifecycle event listener from this component. |
void |
removeProperty(java.lang.String name)
remove a configured property. |
void |
setAcceptCount(int count)
Set the accept count for this Connector. |
void |
setAddress(java.lang.String address)
Set the bind IP address for this Connector. |
void |
setAllowTrace(boolean allowTrace)
Set the allowTrace flag, to disable or enable the TRACE HTTP method. |
void |
setBufferSize(int bufferSize)
Set the input buffer size for this Connector. |
void |
setCiphers(java.lang.String ciphers)
Sets the SSL cipher suites that are to be enabled. |
void |
setClientAuth(boolean clientAuth)
|
void |
setCompression(java.lang.String compression)
Set the value of compression. |
void |
setConnectionLinger(int connectionLinger)
Set the connection linger for this Connector. |
void |
setConnectionTimeout(int connectionTimeout)
Set the connection timeout for this Connector. |
void |
setConnectionUploadTimeout(int connectionUploadTimeout)
Set the connection upload timeout for this Connector. |
void |
setContainer(Container container)
Set the Container used for processing requests received by this Connector. |
void |
setController(javax.management.ObjectName controller)
|
void |
setDebug(int debug)
Set the debugging detail level for this component. |
void |
setDisableUploadTimeout(boolean isDisabled)
Set the flag to specify upload time-out behavior. |
void |
setEnableLookups(boolean enableLookups)
Set the "enable DNS lookups" flag. |
void |
setFactory(ServerSocketFactory factory)
Set the server socket factory used by this Container. |
void |
setKeepAlive(boolean keepAlive)
Set the keep-alive policy for this connection. |
void |
setKeyAlias(java.lang.String alias)
Sets the alias name of the keypair and supporting certificate chain used by this Connector to authenticate itself to SSL clients. |
void |
setKeystoreFile(java.lang.String keystoreFile)
|
void |
setKeystorePass(java.lang.String keystorePass)
Set keystorePass |
void |
setMaxKeepAliveRequests(int mkar)
Set the maximum number of Keep-Alive requests to honor per connection. |
void |
setMaxPostSize(int maxPostSize)
Set the maximum size of a POST which will be automatically parsed by the container. |
void |
setMaxProcessors(int maxProcessors)
Set the maximum number of processors allowed, or <0 for unlimited. |
void |
setMinProcessors(int minProcessors)
Set the minimum number of processors to start at initialization. |
void |
setPort(int port)
Set the port number on which we listen for requests. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set a configured property. |
void |
setProtocol(java.lang.String protocol)
Set the Coyote protocol which will be used by the connector. |
void |
setProtocolHandlerClassName(java.lang.String protocolHandlerClassName)
Set the class name of the Coyote protocol handler which will be used by the connector. |
void |
setProxyName(java.lang.String proxyName)
Set the proxy server name for this Connector. |
void |
setProxyPort(int proxyPort)
Set the proxy server port for this Connector. |
void |
setRedirectPort(int redirectPort)
Set the redirect port number. |
void |
setScheme(java.lang.String scheme)
Set the scheme that will be assigned to requests received through this connector. |
void |
setSecure(boolean secure)
Set the secure connection flag that will be assigned to requests received through this connector. |
void |
setServerSocketTimeout(int serverSocketTimeout)
Set the server socket timeout for this Connector. |
void |
setService(Service service)
Set the Service with which we are associated (if any). |
void |
setSslProtocol(java.lang.String sslProtocol)
Sets the SSL protocol variant to be used. |
void |
setSslProtocols(java.lang.String sslProtocols)
Sets the SSL protocol variants to be enabled. |
void |
setTcpNoDelay(boolean tcpNoDelay)
Set the TCP no delay flag which will be set on the socket after accepting a connection. |
void |
setTomcatAuthentication(boolean tomcatAuthentication)
|
void |
setURIEncoding(java.lang.String URIEncoding)
Set the URI encoding to be used for the URI. |
void |
setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
Set if the entity body encoding should be used for the URI. |
void |
setXpoweredBy(boolean xpoweredBy)
Enables or disables the generation of an X-Powered-By header (with value Servlet/2.4) for all servlet-generated responses returned by this Connector. |
void |
start()
Begin processing requests via this Connector. |
void |
stop()
Terminate processing requests via this Connector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Container container
protected LifecycleSupport lifecycle
protected int minProcessors
protected java.lang.String domain
protected javax.management.ObjectName oname
protected javax.management.MBeanServer mserver
Constructor Detail |
public CoyoteConnector()
Method Detail |
public java.lang.Object getProperty(java.lang.String name)
public void setProperty(java.lang.String name, java.lang.Object value)
public void removeProperty(java.lang.String name)
public Service getService()
Service
with which we are associated (if any).
getService
in interface Connector
public void setService(Service service)
Service
with which we are associated (if any).
setService
in interface Connector
service
- The service that owns this Enginepublic java.lang.String getCompression()
public void setCompression(java.lang.String compression)
compression
- The new compression value, which can be "on", "off"
or "force"public int getConnectionLinger()
public void setConnectionLinger(int connectionLinger)
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public int getConnectionUploadTimeout()
public void setConnectionUploadTimeout(int connectionUploadTimeout)
connectionUploadTimeout
- The new connection upload timeoutpublic int getServerSocketTimeout()
public void setServerSocketTimeout(int serverSocketTimeout)
public int getAcceptCount()
public void setAcceptCount(int count)
count
- The new accept countpublic java.lang.String getAddress()
public void setAddress(java.lang.String address)
address
- The bind IP addresspublic boolean getAllowTrace()
public void setAllowTrace(boolean allowTrace)
allowTrace
- The new allowTrace flagpublic boolean isAvailable()
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize
- The new input buffer size.public Container getContainer()
getContainer
in interface Connector
public void setContainer(Container container)
setContainer
in interface Connector
container
- The new Container to usepublic int getDebug()
public void setDebug(int debug)
debug
- The new debugging detail levelpublic boolean getEnableLookups()
getEnableLookups
in interface Connector
public void setEnableLookups(boolean enableLookups)
setEnableLookups
in interface Connector
enableLookups
- The new "enable DNS lookups" flag valuepublic ServerSocketFactory getFactory()
getFactory
in interface Connector
public void setFactory(ServerSocketFactory factory)
setFactory
in interface Connector
factory
- The new server socket factorypublic java.lang.String getInfo()
getInfo
in interface Connector
public Mapper getMapper()
public int getMinProcessors()
public void setMinProcessors(int minProcessors)
minProcessors
- The new minimum processorspublic int getMaxProcessors()
public void setMaxProcessors(int maxProcessors)
maxProcessors
- The new maximum processorspublic int getMaxPostSize()
public void setMaxPostSize(int maxPostSize)
maxPostSize
- The new maximum size in bytes of a POST which will
be automatically parsed by the containerpublic int getPort()
public void setPort(int port)
port
- The new port numberpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
protocol
- The Coyote protocol namepublic java.lang.String getProtocolHandlerClassName()
public void setProtocolHandlerClassName(java.lang.String protocolHandlerClassName)
protocolHandlerClassName
- The new class namepublic ProtocolHandler getProtocolHandler()
public java.lang.String getProxyName()
public void setProxyName(java.lang.String proxyName)
proxyName
- The new proxy server namepublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort
- The new proxy server portpublic int getRedirectPort()
getRedirectPort
in interface Connector
public void setRedirectPort(int redirectPort)
setRedirectPort
in interface Connector
redirectPort
- The redirect port number (non-SSL to SSL)public boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean isDisabled)
isDisabled
- If true
, then the timeout
parameter is ignored. If false
, then the
timeout
parameter is used to control uploads.public boolean getKeepAlive()
public void setKeepAlive(boolean keepAlive)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public java.lang.String getScheme()
getScheme
in interface Connector
public void setScheme(java.lang.String scheme)
setScheme
in interface Connector
scheme
- The new schemepublic boolean getSecure()
getSecure
in interface Connector
public void setSecure(boolean secure)
setSecure
in interface Connector
secure
- The new secure connection flagpublic boolean getTomcatAuthentication()
public void setTomcatAuthentication(boolean tomcatAuthentication)
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
tcpNoDelay
- The new TCP no delay flagpublic java.lang.String getURIEncoding()
public void setURIEncoding(java.lang.String URIEncoding)
URIEncoding
- The new URI character encoding.public boolean getUseBodyEncodingForURI()
public void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
useBodyEncodingForURI
- The new value for the flag.public boolean isXpoweredBy()
public void setXpoweredBy(boolean xpoweredBy)
xpoweredBy
- true if generation of X-Powered-By response header is
to be enabled, false otherwisepublic Request createRequest()
createRequest
in interface Connector
public Response createResponse()
createResponse
in interface Connector
public void addLifecycleListener(LifecycleListener listener)
addLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic LifecycleListener[] findLifecycleListeners()
findLifecycleListeners
in interface Lifecycle
public void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener
in interface Lifecycle
listener
- The listener to addpublic void initialize() throws LifecycleException
initialize
in interface Connector
LifecycleException
- If this server was already initialized.public void start() throws LifecycleException
start
in interface Lifecycle
LifecycleException
- if a fatal startup error occurspublic void stop() throws LifecycleException
stop
in interface Lifecycle
LifecycleException
- if a fatal shutdown error occurspublic boolean getClientAuth()
public void setClientAuth(boolean clientAuth)
public java.lang.String getKeystoreFile()
public void setKeystoreFile(java.lang.String keystoreFile)
public java.lang.String getKeystorePass()
public void setKeystorePass(java.lang.String keystorePass)
public java.lang.String getCiphers()
public void setCiphers(java.lang.String ciphers)
ciphers
- Comma-separated list of SSL cipher suitespublic java.lang.String getKeyAlias()
public void setKeyAlias(java.lang.String alias)
alias
- The alias name of the keypair and supporting certificate
chainpublic java.lang.String getSslProtocol()
public void setSslProtocol(java.lang.String sslProtocol)
sslProtocol
- SSL protocol variantpublic java.lang.String getSslProtocols()
public void setSslProtocols(java.lang.String sslProtocols)
sslProtocols
- Comma-separated list of SSL protocol variantspublic javax.management.ObjectName getController()
public void setController(javax.management.ObjectName controller)
public javax.management.ObjectName getObjectName()
public java.lang.String getDomain()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
public void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
public void init() throws java.lang.Exception
java.lang.Exception
public void destroy() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |