|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 HashMap<String,Object> |
attributes
|
protected String |
compressableMimeTypes
|
protected 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 String |
domain
|
protected AprEndpoint |
endpoint
|
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 MBeanServer |
mserver
|
protected String |
noCompressionUserAgents
|
protected ObjectName |
oname
|
protected int |
processorCache
Processor cache. |
protected String |
protocol
|
protected 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 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()
Destroy the protocol (optional). |
Adapter |
getAdapter()
|
InetAddress |
getAddress()
|
Object |
getAttribute(String key)
|
Iterator<String> |
getAttributeNames()
|
int |
getBacklog()
|
String |
getCompressableMimeType()
|
String |
getCompression()
|
int |
getCompressionMinSize()
|
boolean |
getDeferAccept()
|
boolean |
getDisableUploadTimeout()
|
String |
getDomain()
|
Executor |
getExecutor()
The executor, provide access to the underlying thread pool. |
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()
|
String |
getName()
|
String |
getNoCompressionUserAgents()
|
ObjectName |
getObjectName()
|
int |
getPollerSize()
|
int |
getPollerThreadCount()
|
int |
getPollTime()
|
int |
getPort()
|
int |
getProcessorCache()
|
String |
getProtocol()
|
String |
getRestrictedUserAgents()
|
boolean |
getSecure()
|
int |
getSendfileSize()
|
int |
getSendfileThreadCount()
|
String |
getServer()
|
int |
getSocketBuffer()
|
int |
getSoLinger()
|
int |
getSoTimeout()
|
String |
getSSLCACertificateFile()
SSL CA certificate file. |
String |
getSSLCACertificatePath()
SSL CA certificate path. |
String |
getSSLCARevocationFile()
SSL CA revocation file. |
String |
getSSLCARevocationPath()
SSL CA revocation path. |
String |
getSSLCertificateChainFile()
SSL certificate chain file. |
String |
getSSLCertificateFile()
SSL certificate file. |
String |
getSSLCertificateKeyFile()
SSL certificate key file. |
String |
getSSLCipherSuite()
SSL cipher suite. |
String |
getSSLPassword()
SSL password (if a cert is encrypted, and no password has been provided, a callback will ask for a password). |
String |
getSSLProtocol()
SSL protocol. |
String |
getSSLVerifyClient()
SSL verify client. |
int |
getSSLVerifyDepth()
SSL verify depth. |
boolean |
getTcpNoDelay()
|
int |
getThreadPriority()
|
int |
getTimeout()
|
boolean |
getUseSendfile()
|
void |
init()
Start the protocol |
boolean |
isSSLEnabled()
SSL engine. |
void |
pause()
Pause the protocol (optional). |
void |
postDeregister()
|
void |
postRegister(Boolean registrationDone)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
|
void |
resume()
Resume the protocol (optional). |
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector. |
void |
setAddress(InetAddress ia)
|
void |
setAttribute(String name,
Object value)
Pass config info |
void |
setBacklog(int backlog)
|
void |
setCompressableMimeType(String valueS)
|
void |
setCompression(String valueS)
|
void |
setCompressionMinSize(int valueI)
|
void |
setDeferAccept(boolean deferAccept)
|
void |
setDisableUploadTimeout(boolean isDisabled)
|
void |
setExecutor(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(String valueS)
|
void |
setPollerSize(int pollerSize)
|
void |
setPollerThreadCount(int pollerThreadCount)
|
void |
setPollTime(int pollTime)
|
void |
setPort(int port)
|
void |
setProcessorCache(int processorCache)
|
void |
setProtocol(String protocol)
|
void |
setRestrictedUserAgents(String valueS)
|
void |
setSecure(boolean b)
|
void |
setSendfileSize(int sendfileSize)
|
void |
setSendfileThreadCount(int sendfileThreadCount)
|
void |
setServer(String server)
|
void |
setSocketBuffer(int socketBuffer)
|
void |
setSoLinger(int soLinger)
|
void |
setSoTimeout(int soTimeout)
|
void |
setSSLCACertificateFile(String SSLCACertificateFile)
|
void |
setSSLCACertificatePath(String SSLCACertificatePath)
|
void |
setSSLCARevocationFile(String SSLCARevocationFile)
|
void |
setSSLCARevocationPath(String SSLCARevocationPath)
|
void |
setSSLCertificateChainFile(String SSLCertificateChainFile)
|
void |
setSSLCertificateFile(String SSLCertificateFile)
|
void |
setSSLCertificateKeyFile(String SSLCertificateKeyFile)
|
void |
setSSLCipherSuite(String SSLCipherSuite)
|
void |
setSSLEnabled(boolean SSLEnabled)
|
void |
setSSLPassword(String SSLPassword)
|
void |
setSSLProtocol(String SSLProtocol)
|
void |
setSSLVerifyClient(String SSLVerifyClient)
|
void |
setSSLVerifyDepth(int SSLVerifyDepth)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setThreadPriority(int threadPriority)
|
void |
setTimeout(int timeout)
|
void |
setUseSendfile(boolean useSendfile)
|
void |
start()
Start the protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
protected Adapter adapter
protected AprEndpoint endpoint
protected HashMap<String,Object> attributes
protected int processorCache
protected int socketBuffer
protected int maxSavePostSize
protected int maxHttpHeaderSize
protected boolean disableUploadTimeout
protected String compression
protected String noCompressionUserAgents
protected String compressableMimeTypes
protected int compressionMinSize
protected String restrictedUserAgents
protected String protocol
protected int maxKeepAliveRequests
protected String server
protected int timeout
protected boolean secure
protected String domain
protected ObjectName oname
protected MBeanServer mserver
Constructor Detail |
---|
public Http11AprProtocol()
Method Detail |
---|
public void setAttribute(String name, Object value)
setAttribute
in interface ProtocolHandler
public Object getAttribute(String key)
getAttribute
in interface ProtocolHandler
public Iterator<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 Exception
init
in interface ProtocolHandler
Exception
public void start() throws Exception
ProtocolHandler
start
in interface ProtocolHandler
Exception
public void pause() throws Exception
ProtocolHandler
pause
in interface ProtocolHandler
Exception
public void resume() throws Exception
ProtocolHandler
resume
in interface ProtocolHandler
Exception
public void destroy() throws Exception
ProtocolHandler
destroy
in interface ProtocolHandler
Exception
public String getName()
public int getProcessorCache()
public void setProcessorCache(int processorCache)
public Executor getExecutor()
ProtocolHandler
getExecutor
in interface ProtocolHandler
public void setExecutor(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 InetAddress getAddress()
public void setAddress(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 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 String getCompression()
public void setCompression(String valueS)
public String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(String valueS)
public String getCompressableMimeType()
public void setCompressableMimeType(String valueS)
public int getCompressionMinSize()
public void setCompressionMinSize(int valueI)
public String getRestrictedUserAgents()
public void setRestrictedUserAgents(String valueS)
public String getProtocol()
public void setProtocol(String protocol)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public boolean getKeepAlive()
public void setKeepAlive(boolean keepAlive)
public void setServer(String server)
public 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 String getSSLProtocol()
public void setSSLProtocol(String SSLProtocol)
public String getSSLPassword()
public void setSSLPassword(String SSLPassword)
public String getSSLCipherSuite()
public void setSSLCipherSuite(String SSLCipherSuite)
public String getSSLCertificateFile()
public void setSSLCertificateFile(String SSLCertificateFile)
public String getSSLCertificateKeyFile()
public void setSSLCertificateKeyFile(String SSLCertificateKeyFile)
public String getSSLCertificateChainFile()
public void setSSLCertificateChainFile(String SSLCertificateChainFile)
public String getSSLCACertificatePath()
public void setSSLCACertificatePath(String SSLCACertificatePath)
public String getSSLCACertificateFile()
public void setSSLCACertificateFile(String SSLCACertificateFile)
public String getSSLCARevocationPath()
public void setSSLCARevocationPath(String SSLCARevocationPath)
public String getSSLCARevocationFile()
public void setSSLCARevocationFile(String SSLCARevocationFile)
public String getSSLVerifyClient()
public void setSSLVerifyClient(String SSLVerifyClient)
public int getSSLVerifyDepth()
public void setSSLVerifyDepth(int SSLVerifyDepth)
public ObjectName getObjectName()
public String getDomain()
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
|
Apache Tomcat 7.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |