|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.AbstractProtocol org.apache.coyote.http11.Http11AprProtocol
public class Http11AprProtocol
Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI.
Field Summary | |
---|---|
protected Adapter |
adapter
The adapter, used to call the connector. |
protected java.util.HashMap<java.lang.String,java.lang.Object> |
attributes
|
protected java.lang.String |
clientCertProvider
When client certificate information is presented in a form other than instances of X509Certificate it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. |
protected java.lang.String |
compressableMimeTypes
|
protected java.lang.String |
compression
Integrated compression support. |
protected int |
compressionMinSize
|
protected boolean |
disableUploadTimeout
If true, the regular socket timeout will be used for the full duration of the connection. |
protected java.lang.String |
domain
|
protected AprEndpoint |
endpoint
|
protected static Log |
log
|
protected int |
maxHttpHeaderSize
Maximum size of the HTTP message header. |
protected int |
maxKeepAliveRequests
Maximum number of requests which can be performed over a keepalive connection. |
protected int |
maxSavePostSize
Maximum size of the post which will be saved when processing certain requests, such as a POST. |
protected javax.management.MBeanServer |
mserver
|
protected java.lang.String |
noCompressionUserAgents
|
protected javax.management.ObjectName |
oname
|
protected int |
processorCache
Processor cache. |
protected java.lang.String |
protocol
|
protected java.lang.String |
restrictedUserAgents
User agents regular expressions which should be restricted to HTTP/1.0 support. |
protected boolean |
secure
This field indicates if the protocol is secure from the perspective of the client (= https is used). |
protected java.lang.String |
server
Server header. |
protected static StringManager |
sm
The string manager for this package. |
protected int |
socketBuffer
|
protected int |
timeout
This timeout represents the socket timeout which will be used while the adapter execution is in progress, unless disableUploadTimeout is set to true. |
Constructor Summary | |
---|---|
Http11AprProtocol()
|
Method Summary | |
---|---|
void |
destroy()
|
Adapter |
getAdapter()
|
java.net.InetAddress |
getAddress()
|
java.lang.Object |
getAttribute(java.lang.String key)
|
java.util.Iterator<java.lang.String> |
getAttributeNames()
|
int |
getBacklog()
|
java.lang.String |
getClientCertProvider()
|
java.lang.String |
getCompressableMimeType()
|
java.lang.String |
getCompression()
|
int |
getCompressionMinSize()
|
boolean |
getDeferAccept()
|
boolean |
getDisableUploadTimeout()
|
java.lang.String |
getDomain()
|
protected AbstractEndpoint |
getEndpoint()
|
java.util.concurrent.Executor |
getExecutor()
|
boolean |
getKeepAlive()
Return the Keep-Alive policy for the connection. |
int |
getKeepAliveTimeout()
The number of seconds Tomcat will wait for a subsequent request before closing the connection. |
int |
getMaxHttpHeaderSize()
|
int |
getMaxKeepAliveRequests()
|
int |
getMaxSavePostSize()
|
int |
getMaxThreads()
|
java.lang.String |
getName()
|
java.lang.String |
getNoCompressionUserAgents()
|
javax.management.ObjectName |
getObjectName()
|
int |
getPollerSize()
|
int |
getPollerThreadCount()
|
int |
getPollTime()
|
int |
getPort()
|
int |
getProcessorCache()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getRestrictedUserAgents()
|
boolean |
getSecure()
|
int |
getSendfileSize()
|
int |
getSendfileThreadCount()
|
java.lang.String |
getServer()
|
int |
getSocketBuffer()
|
int |
getSoLinger()
|
int |
getSoTimeout()
|
java.lang.String |
getSSLCACertificateFile()
SSL CA certificate file. |
java.lang.String |
getSSLCACertificatePath()
SSL CA certificate path. |
java.lang.String |
getSSLCARevocationFile()
SSL CA revocation file. |
java.lang.String |
getSSLCARevocationPath()
SSL CA revocation path. |
java.lang.String |
getSSLCertificateChainFile()
SSL certificate chain file. |
java.lang.String |
getSSLCertificateFile()
SSL certificate file. |
java.lang.String |
getSSLCertificateKeyFile()
SSL certificate key file. |
java.lang.String |
getSSLCipherSuite()
SSL cipher suite. |
boolean |
getSSLDisableCompression()
Disable SSL compression. |
boolean |
getSSLHonorCipherOrder()
SSL honor cipher order. |
java.lang.String |
getSSLPassword()
SSL password (if a cert is encrypted, and no password has been provided, a callback will ask for a password). |
java.lang.String |
getSSLProtocol()
SSL protocol. |
java.lang.String |
getSSLVerifyClient()
SSL verify client. |
int |
getSSLVerifyDepth()
SSL verify depth. |
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
int |
getTimeout()
|
int |
getUnlockTimeout()
|
boolean |
getUseSendfile()
|
void |
init()
Start the protocol |
boolean |
isSSLEnabled()
SSL engine. |
void |
pause()
Pause the protocol (optional). |
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
|
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector. |
void |
setAddress(java.net.InetAddress ia)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Pass config info |
void |
setBacklog(int backlog)
|
void |
setClientCertProvider(java.lang.String s)
|
void |
setCompressableMimeType(java.lang.String valueS)
|
void |
setCompression(java.lang.String valueS)
|
void |
setCompressionMinSize(int valueI)
|
void |
setDeferAccept(boolean deferAccept)
|
void |
setDisableUploadTimeout(boolean isDisabled)
|
void |
setExecutor(java.util.concurrent.Executor executor)
|
void |
setKeepAlive(boolean keepAlive)
Set the keep-alive policy for this connection. |
void |
setKeepAliveTimeout(int timeout)
|
void |
setMaxHttpHeaderSize(int valueI)
|
void |
setMaxKeepAliveRequests(int mkar)
|
void |
setMaxSavePostSize(int valueI)
|
void |
setMaxThreads(int maxThreads)
|
void |
setNoCompressionUserAgents(java.lang.String valueS)
|
void |
setPollerSize(int pollerSize)
|
void |
setPollerThreadCount(int pollerThreadCount)
|
void |
setPollTime(int pollTime)
|
void |
setPort(int port)
|
void |
setProcessorCache(int processorCache)
|
void |
setProtocol(java.lang.String protocol)
|
void |
setRestrictedUserAgents(java.lang.String valueS)
|
void |
setSecure(boolean b)
|
void |
setSendfileSize(int sendfileSize)
|
void |
setSendfileThreadCount(int sendfileThreadCount)
|
void |
setServer(java.lang.String server)
|
void |
setSocketBuffer(int socketBuffer)
|
void |
setSoLinger(int soLinger)
|
void |
setSoTimeout(int soTimeout)
|
void |
setSSLCACertificateFile(java.lang.String SSLCACertificateFile)
|
void |
setSSLCACertificatePath(java.lang.String SSLCACertificatePath)
|
void |
setSSLCARevocationFile(java.lang.String SSLCARevocationFile)
|
void |
setSSLCARevocationPath(java.lang.String SSLCARevocationPath)
|
void |
setSSLCertificateChainFile(java.lang.String SSLCertificateChainFile)
|
void |
setSSLCertificateFile(java.lang.String SSLCertificateFile)
|
void |
setSSLCertificateKeyFile(java.lang.String SSLCertificateKeyFile)
|
void |
setSSLCipherSuite(java.lang.String SSLCipherSuite)
|
void |
setSSLDisableCompression(boolean disable)
|
void |
setSSLEnabled(boolean SSLEnabled)
|
void |
setSSLHonorCipherOrder(boolean SSLHonorCipherOrder)
|
void |
setSSLPassword(java.lang.String SSLPassword)
|
void |
setSSLProtocol(java.lang.String SSLProtocol)
|
void |
setSSLVerifyClient(java.lang.String SSLVerifyClient)
|
void |
setSSLVerifyDepth(int SSLVerifyDepth)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTimeout(int timeout)
|
void |
setUnlockTimeout(int unlockTimeout)
|
void |
setUseSendfile(boolean useSendfile)
|
void |
start()
Start the protocol. |
Methods inherited from class org.apache.coyote.AbstractProtocol |
---|
createName, getLocalPort, getMaxCookieCount, getMaxHeaderCount, getNameIndex, nextNameIndex, setMaxCookieCount, setMaxHeaderCount |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Log log
protected static StringManager sm
protected Adapter adapter
protected AprEndpoint endpoint
protected java.util.HashMap<java.lang.String,java.lang.Object> attributes
protected int processorCache
protected int socketBuffer
protected int maxSavePostSize
protected int maxHttpHeaderSize
protected boolean disableUploadTimeout
protected java.lang.String compression
protected java.lang.String noCompressionUserAgents
protected java.lang.String compressableMimeTypes
protected int compressionMinSize
protected java.lang.String restrictedUserAgents
protected java.lang.String protocol
protected int maxKeepAliveRequests
protected java.lang.String server
protected int timeout
protected boolean secure
protected java.lang.String clientCertProvider
X509Certificate
it needs to be
converted before it can be used and this property controls which JSSE
provider is used to perform the conversion. For example it is used with
the AJP connectors, the HTTP APR connector and with the
SSLValve
. If not specified, the
default provider will be used.
protected java.lang.String domain
protected javax.management.ObjectName oname
protected javax.management.MBeanServer mserver
Constructor Detail |
---|
public Http11AprProtocol()
Method Detail |
---|
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface ProtocolHandler
public java.lang.Object getAttribute(java.lang.String key)
getAttribute
in interface ProtocolHandler
public java.util.Iterator<java.lang.String> getAttributeNames()
getAttributeNames
in interface ProtocolHandler
public void setAdapter(Adapter adapter)
ProtocolHandler
setAdapter
in interface ProtocolHandler
public Adapter getAdapter()
getAdapter
in interface ProtocolHandler
public void init() throws java.lang.Exception
init
in interface ProtocolHandler
java.lang.Exception
public void start() throws java.lang.Exception
ProtocolHandler
start
in interface ProtocolHandler
java.lang.Exception
public void pause() throws java.lang.Exception
ProtocolHandler
pause
in interface ProtocolHandler
java.lang.Exception
public void resume() throws java.lang.Exception
ProtocolHandler
resume
in interface ProtocolHandler
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface ProtocolHandler
java.lang.Exception
public java.lang.String getName()
protected final AbstractEndpoint getEndpoint()
getEndpoint
in class AbstractProtocol
public int getProcessorCache()
public void setProcessorCache(int processorCache)
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
public int getMaxThreads()
public void setMaxThreads(int maxThreads)
public int getThreadPriority()
public void setThreadPriority(int threadPriority)
public int getBacklog()
public void setBacklog(int backlog)
public int getPort()
public void setPort(int port)
public java.net.InetAddress getAddress()
public void setAddress(java.net.InetAddress ia)
public boolean getTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public int getSoLinger()
public void setSoLinger(int soLinger)
public int getSoTimeout()
public void setSoTimeout(int soTimeout)
public int getUnlockTimeout()
public void setUnlockTimeout(int unlockTimeout)
public int getKeepAliveTimeout()
public void setKeepAliveTimeout(int timeout)
public boolean getUseSendfile()
public void setUseSendfile(boolean useSendfile)
public int getPollTime()
public void setPollTime(int pollTime)
public void setPollerSize(int pollerSize)
public int getPollerSize()
public void setPollerThreadCount(int pollerThreadCount)
public int getPollerThreadCount()
public int getSendfileSize()
public void setSendfileSize(int sendfileSize)
public void setSendfileThreadCount(int sendfileThreadCount)
public int getSendfileThreadCount()
public boolean getDeferAccept()
public void setDeferAccept(boolean deferAccept)
public int getSocketBuffer()
public void setSocketBuffer(int socketBuffer)
public int getMaxSavePostSize()
public void setMaxSavePostSize(int valueI)
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int valueI)
public boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean isDisabled)
public java.lang.String getCompression()
public void setCompression(java.lang.String valueS)
public java.lang.String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(java.lang.String valueS)
public java.lang.String getCompressableMimeType()
public void setCompressableMimeType(java.lang.String valueS)
public int getCompressionMinSize()
public void setCompressionMinSize(int valueI)
public java.lang.String getRestrictedUserAgents()
public void setRestrictedUserAgents(java.lang.String valueS)
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public boolean getKeepAlive()
public void setKeepAlive(boolean keepAlive)
public void setServer(java.lang.String server)
public java.lang.String getServer()
public int getTimeout()
public void setTimeout(int timeout)
public boolean getSecure()
public void setSecure(boolean b)
public boolean isSSLEnabled()
public void setSSLEnabled(boolean SSLEnabled)
public java.lang.String getSSLProtocol()
public void setSSLProtocol(java.lang.String SSLProtocol)
public java.lang.String getSSLPassword()
public void setSSLPassword(java.lang.String SSLPassword)
public java.lang.String getSSLCipherSuite()
public void setSSLCipherSuite(java.lang.String SSLCipherSuite)
public boolean getSSLHonorCipherOrder()
true
to enforce the server's cipher order
instead of the default which is to allow the client to choose a
preferred cipher.
public void setSSLHonorCipherOrder(boolean SSLHonorCipherOrder)
public java.lang.String getSSLCertificateFile()
public void setSSLCertificateFile(java.lang.String SSLCertificateFile)
public java.lang.String getSSLCertificateKeyFile()
public void setSSLCertificateKeyFile(java.lang.String SSLCertificateKeyFile)
public java.lang.String getSSLCertificateChainFile()
public void setSSLCertificateChainFile(java.lang.String SSLCertificateChainFile)
public java.lang.String getSSLCACertificatePath()
public void setSSLCACertificatePath(java.lang.String SSLCACertificatePath)
public java.lang.String getSSLCACertificateFile()
public void setSSLCACertificateFile(java.lang.String SSLCACertificateFile)
public java.lang.String getSSLCARevocationPath()
public void setSSLCARevocationPath(java.lang.String SSLCARevocationPath)
public java.lang.String getSSLCARevocationFile()
public void setSSLCARevocationFile(java.lang.String SSLCARevocationFile)
public java.lang.String getSSLVerifyClient()
public void setSSLVerifyClient(java.lang.String SSLVerifyClient)
public int getSSLVerifyDepth()
public void setSSLVerifyDepth(int SSLVerifyDepth)
public boolean getSSLDisableCompression()
public void setSSLDisableCompression(boolean disable)
public java.lang.String getClientCertProvider()
public void setClientCertProvider(java.lang.String s)
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
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |