Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.coyote.http11
Class Http11Protocol  view Http11Protocol download Http11Protocol.java

java.lang.Object
  extended byorg.apache.coyote.http11.Http11BaseProtocol
      extended byorg.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.


Nested Class Summary
(package private) static class Http11Protocol.JmxHttp11ConnectionHandler
           
(package private) static class Http11Protocol.MXPoolListener
           
 
Nested classes inherited from class org.apache.coyote.http11.Http11BaseProtocol
Http11BaseProtocol.Http11ConnectionHandler
 
Field Summary
protected  java.lang.String domain
           
protected  javax.management.MBeanServer mserver
           
protected  javax.management.ObjectName oname
           
(package private)  javax.management.ObjectName rgOname
           
(package private)  javax.management.ObjectName tpOname
           
 
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
 
Constructor Summary
Http11Protocol()
           
 
Method Summary
protected  Http11BaseProtocol.Http11ConnectionHandler createConnectionHandler()
           
 void destroy()
           
 java.lang.String getDomain()
           
 javax.management.ObjectName getObjectName()
           
 void postDeregister()
          This method is called by the MBeanServer after deregistration takes place.
 void postRegister(java.lang.Boolean registrationDone)
          This method is called by the MBeanServer after registration takes place or when registration fails.
 void preDeregister()
          This method is called by the MBeanServer before deregistration takes place.
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
          This method is called by the MBeanServer before registration takes place.
 void start()
          Start the protocol.
 
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
 

Field Detail

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
Constructor Detail

Http11Protocol

public Http11Protocol()
Method Detail

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