org.apache.jk.common

Class HandlerDispatch

Implemented Interfaces:
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

Field Summary

Fields inherited from class org.apache.jk.core.JkHandler

ERROR, HANDLE_FLUSH, HANDLE_RECEIVE_PACKET, HANDLE_SEND_PACKET, HANDLE_THREAD_END, LAST, OK, domain, id, mserver, name, next, nextName, oname, properties, wEnv

Constructor Summary

HandlerDispatch()

Method Summary

void
init()
Should register the request types it can handle, same style as apache2.
int
invoke(Msg msg, MsgContext ep)
int
registerMessageType(int id, String name, JkHandler h, sig[] )

Methods inherited from class org.apache.jk.core.JkHandler

addHandlerCallback, createMsgContext, destroy, getDomain, getId, getName, getNext, getObjectName, getProperty, handleNotification, init, invoke, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setId, setName, setNext, setNext, setProperty, setWorkerEnv

Constructor Details

HandlerDispatch

public HandlerDispatch()

Method Details

init

public void init()
Should register the request types it can handle, same style as apache2.
Overrides:
init in interface JkHandler


invoke

public int invoke(Msg msg,
                  MsgContext ep)
            throws IOException
Overrides:
invoke in interface JkHandler


registerMessageType

public int registerMessageType(int id,
                               String name,
                               JkHandler h,
                               sig[] )


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.