org.apache.axis2.engine
Class AbstractDispatcher

java.lang.Object
  extended byorg.apache.axis2.handlers.AbstractHandler
      extended byorg.apache.axis2.engine.AbstractDispatcher
All Implemented Interfaces:
Handler, java.io.Serializable
Direct Known Subclasses:
AddressingBasedDispatcher, RequestURIBasedDispatcher, SOAPActionBasedDispatcher, SOAPMessageBodyBasedDispatcher

public abstract class AbstractDispatcher
extends AbstractHandler

This the base class for all dispatchers, it is a Handler which has a one traget, that is to find the Service a given SOAP message is targeted to.

Axis2 service dispatching is model via a Chain of diapatchers, each trying to Diaptach but let go without throwing a execption in case they fail.

See Also:
Serialized Form

Field Summary
static javax.xml.namespace.QName NAME
          Field NAME
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
AbstractDispatcher()
           
 
Method Summary
abstract  OperationDescription findOperation(ServiceDescription service, MessageContext messageContext)
          Give the diaptacher turn to find the Operation
abstract  ServiceDescription findService(MessageContext messageContext)
          Give the diaptacher turn to find the Service
abstract  void initDispatcher()
           
 void invoke(MessageContext msgctx)
          This is final, obivously not for overiding
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, getHandlerDesc, getName, getParameter, init, revoke, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final javax.xml.namespace.QName NAME
Field NAME

Constructor Detail

AbstractDispatcher

public AbstractDispatcher()
Method Detail

initDispatcher

public abstract void initDispatcher()

invoke

public final void invoke(MessageContext msgctx)
                  throws AxisFault
This is final, obivously not for overiding

Parameters:
msgctx -
Throws:
AxisFault

findService

public abstract ServiceDescription findService(MessageContext messageContext)
                                        throws AxisFault
Give the diaptacher turn to find the Service

Parameters:
messageContext -
Returns:
Throws:
AxisFault

findOperation

public abstract OperationDescription findOperation(ServiceDescription service,
                                                   MessageContext messageContext)
                                            throws AxisFault
Give the diaptacher turn to find the Operation

Parameters:
service -
messageContext -
Returns:
Throws:
AxisFault