Save This Page
Home » apache-tomcat-6.0.26-src » org.apache.jk » core » [javadoc | source]
org.apache.jk.core
public class: JkHandler [javadoc | source]
java.lang.Object
   org.apache.jk.core.JkHandler

All Implemented Interfaces:
    NotificationListener, MBeanRegistration

Direct Known Subclasses:
    ChannelSocket, Shm, ChannelShm, HandlerDispatch, ModJkMX, JniHandler, ChannelJni, HandlerRequest, ChannelNioSocket, WorkerDummy, AprImpl, ChannelUn, JkCoyoteHandler, JkMX, Shm14

Field Summary
public static final  int OK     
public static final  int LAST     
public static final  int ERROR     
protected  Properties properties     
protected  WorkerEnv wEnv     
protected  JkHandler next     
protected  String nextName     
protected  String name     
protected  int id     
public static final  int HANDLE_RECEIVE_PACKET     
public static final  int HANDLE_SEND_PACKET     
public static final  int HANDLE_FLUSH     
public static final  int HANDLE_THREAD_END     
protected  String domain     
protected  ObjectName oname     
protected  MBeanServer mserver     
Method from org.apache.jk.core.JkHandler Summary:
addHandlerCallback,   createMsgContext,   createMsgContext,   destroy,   getDomain,   getId,   getName,   getNext,   getObjectName,   getProperty,   handleNotification,   init,   invoke,   pause,   postDeregister,   postRegister,   preDeregister,   preRegister,   resume,   setId,   setName,   setNext,   setNext,   setProperty,   setWorkerEnv
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jk.core.JkHandler Detail:
 public  void addHandlerCallback(JkHandler w) 
    Experimental, will be replaced. This allows handlers to be notified when other handlers are added.
 public MsgContext createMsgContext() 
 public MsgContext createMsgContext(int bsize) 
 public  void destroy() throws IOException 
    Clean up and stop the handler
 public String getDomain() 
 public int getId() 
 public String getName() 
 public String getNext() 
 public ObjectName getObjectName() 
 public String getProperty(String name) 
 public  void handleNotification(Notification notification,
    Object handback) 
 public  void init() throws IOException 
    Should register the request types it can handle, same style as apache2.
 public int invoke(Msg msg,
    MsgContext mc) throws IOException 
 public  void pause() throws Exception 
 public  void postDeregister() 
 public  void postRegister(Boolean registrationDone) 
 public  void preDeregister() throws Exception 
 public ObjectName preRegister(MBeanServer server,
    ObjectName oname) throws Exception 
 public  void resume() throws Exception 
 public  void setId(int id) 
    Set the id of the worker. We use an id for faster dispatch. Since we expect a decent number of handler in system, the id is unique - that means we may have to allocate bigger dispatch tables. ( easy to fix if needed )
 public  void setName(String s) 
    Set the name of the handler. Will allways be called by worker env after creating the worker.
 public  void setNext(JkHandler h) 
    Catalina-style "recursive" invocation. A chain is used for Apache/3.3 style iterative invocation.
 public  void setNext(String s) 
 public  void setProperty(String name,
    String value) 
 public  void setWorkerEnv(WorkerEnv we)