com.sun.grizzly.http.jk.common
Class HandlerDispatch
java.lang.Object
com.sun.grizzly.http.jk.core.JkHandler
com.sun.grizzly.http.jk.common.HandlerDispatch
- All Implemented Interfaces:
- EventListener, MBeanRegistration, NotificationListener
public class HandlerDispatch
- extends JkHandler
Dispatch based on the message type. ( XXX make it more generic,
now it's specific to ajp13 ).
- Author:
- Costin Manolache
Fields inherited from class com.sun.grizzly.http.jk.core.JkHandler |
domain, ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, id, LAST, mserver, name, next, nextName, OK, oname, properties, wEnv |
Methods inherited from class com.sun.grizzly.http.jk.core.JkHandler |
addHandlerCallback, createMsgContext, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HandlerDispatch
public HandlerDispatch()
init
public void init()
- Description copied from class:
JkHandler
- Should register the request types it can handle,
same style as apache2.
- Overrides:
init
in class JkHandler
registerMessageType
public int registerMessageType(int id,
String name,
JkHandler h,
String[] sig)
invoke
public int invoke(Msg msg,
MsgContext ep)
throws IOException
- Overrides:
invoke
in class JkHandler
- Throws:
IOException
Copyright © 2012 Oracle Corporation. All Rights Reserved.