java.lang.Object
org.apache.coyote.http11.Http11BaseProtocol
org.apache.coyote.http11.Http11Protocol
- All Implemented Interfaces:
- javax.management.MBeanRegistration, org.apache.coyote.ProtocolHandler
- public class Http11Protocol
- extends Http11BaseProtocol
- implements javax.management.MBeanRegistration
Abstract the protocol implementation, including threading, etc.
Processor is single threaded and specific to stream-based protocols,
will not fit Jk protocols like JNI.
| Fields inherited from class org.apache.coyote.http11.Http11BaseProtocol |
attributes, cHandler, ep, log, secure, sm, socketFactory, socketFactoryName, sslImplementation, sslImplementationName, THREAD_DATA_OBJECT_NAME, THREAD_DATA_PROCESSOR, tp |
| Methods inherited from class org.apache.coyote.http11.Http11BaseProtocol |
getAdapter, getAddress, getAlgorithm, getAttribute, getAttributeNames, getBacklog, getCiphers, getClientauth, getCompressableMimeType, getCompression, getCompressionMinSize, getDisableUploadTimeout, getKeepAlive, getKeyAlias, getKeypass, getKeystore, getKeytype, getMaxHttpHeaderSize, getMaxKeepAliveRequests, getMaxSavePostSize, getMaxSpareThreads, getMaxThreads, getMinSpareThreads, getName, getNoCompressionUserAgents, getPort, getProperty, getProtocol, getProtocols, getReportedname, getRestrictedUserAgents, getSecure, getServer, getServerSoTimeout, getSocketBuffer, getSocketCloseDelay, getSocketFactory, getSoLinger, getSoTimeout, getSSLImplementation, getStrategy, getTcpNoDelay, getThreadPriority, getTimeout, init, pause, resume, setAdapter, setAddress, setAlgorithm, setAttribute, setBacklog, setCiphers, setClientauth, setCompressableMimeType, setCompression, setCompressionMinSize, setDisableUploadTimeout, setKeepAlive, setKeyAlias, setKeypass, setKeystore, setKeytype, setMaxHttpHeaderSize, setMaxKeepAliveRequests, setMaxSavePostSize, setMaxSpareThreads, setMaxThreads, setMinSpareThreads, setNoCompressionUserAgents, setPort, setProperty, setProtocol, setProtocols, setReportedname, setRestrictedUserAgents, setSecure, setServer, setServerSoTimeout, setSocketBuffer, setSocketCloseDelay, setSocketFactory, setSoLinger, setSoTimeout, setSSLImplementation, setStrategy, setTcpNoDelay, setThreadPriority, setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tpOname
javax.management.ObjectName tpOname
rgOname
javax.management.ObjectName rgOname
domain
protected java.lang.String domain
oname
protected javax.management.ObjectName oname
mserver
protected javax.management.MBeanServer mserver
Http11Protocol
public Http11Protocol()
createConnectionHandler
protected Http11BaseProtocol.Http11ConnectionHandler createConnectionHandler()
- Overrides:
createConnectionHandler in class Http11BaseProtocol
start
public void start()
throws java.lang.Exception
- Description copied from interface:
org.apache.coyote.ProtocolHandler
- Start the protocol.
- Specified by:
start in interface org.apache.coyote.ProtocolHandler- Overrides:
start in class Http11BaseProtocol
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy in interface org.apache.coyote.ProtocolHandler- Overrides:
destroy in class Http11BaseProtocol
getObjectName
public javax.management.ObjectName getObjectName()
getDomain
public java.lang.String getDomain()
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws java.lang.Exception
- Description copied from interface:
javax.management.MBeanRegistration
- This method is called by the MBeanServer before registration takes
place. The MBean is passed a reference of the MBeanServer it is
about to be registered with. The MBean must return the ObjectName it
will be registered with. The MBeanServer can pass a suggested object
depending upon how the MBean is registered.
The MBean can stop the registration by throwing an exception.The
exception is forwarded to the invoker wrapped in an
MBeanRegistrationException.
- Specified by:
preRegister in interface javax.management.MBeanRegistration
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Description copied from interface:
javax.management.MBeanRegistration
- This method is called by the MBeanServer after registration takes
place or when registration fails.
- Specified by:
postRegister in interface javax.management.MBeanRegistration
preDeregister
public void preDeregister()
throws java.lang.Exception
- Description copied from interface:
javax.management.MBeanRegistration
- This method is called by the MBeanServer before deregistration takes
place.
The MBean can throw an exception, this will stop the deregistration.
The exception is forwarded to the invoker wrapped in
an MBeanRegistrationException.
- Specified by:
preDeregister in interface javax.management.MBeanRegistration
postDeregister
public void postDeregister()
- Description copied from interface:
javax.management.MBeanRegistration
- This method is called by the MBeanServer after deregistration takes
place.
- Specified by:
postDeregister in interface javax.management.MBeanRegistration