Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » [javadoc | source]
org.apache.coyote
public interface: ProtocolHandler [javadoc | source]

All Known Implementing Classes:
    AjpProtocol, AjpAprProtocol, Http11NioProtocol, Http11BaseProtocol, JkCoyoteHandler, Http11Protocol, Http11AprProtocol, MemoryProtocolHandler

Abstract the protocol implementation, including threading, etc. Processor is single threaded and specific to stream-based protocols, will not fit Jk protocols like JNI. This is the main interface to be implemented by a coyoute connector. Adapter is the main interface to be impleneted by a coyote servlet container.
Method from org.apache.coyote.ProtocolHandler Summary:
destroy,   getAdapter,   getAttribute,   getAttributeNames,   init,   pause,   resume,   setAdapter,   setAttribute,   start
Method from org.apache.coyote.ProtocolHandler Detail:
 public  void destroy() throws Exception
 public Adapter getAdapter()
 public Object getAttribute(String name)
 public Iterator getAttributeNames()
 public  void init() throws Exception
    Init the protocol.
 public  void pause() throws Exception
    Pause the protocol (optional).
 public  void resume() throws Exception
    Resume the protocol (optional).
 public  void setAdapter(Adapter adapter)
    The adapter, used to call the connector.
 public  void setAttribute(String name,
    Object value)
    Pass config info.
 public  void start() throws Exception
    Start the protocol.