org.apache.ode.axis2.hooks
Class ODEAxisDispatcher

java.lang.Object
  extended by org.apache.axis2.handlers.AbstractHandler
      extended by org.apache.axis2.engine.AbstractDispatcher
          extended by org.apache.ode.axis2.hooks.ODEAxisDispatcher
All Implemented Interfaces:
org.apache.axis2.engine.Handler

public class ODEAxisDispatcher
extends org.apache.axis2.engine.AbstractDispatcher

Dispatches the service based on the information from the target endpoint URL.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse
 
Field Summary
static java.lang.String NAME
          Field NAME
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Constructor Summary
ODEAxisDispatcher()
           
 
Method Summary
static void addElmtToOpMapping(java.lang.String axisServiceName, java.lang.String operationName, java.lang.String elmtName)
          Associates an operation and the corresponding message part element name.
 org.apache.axis2.description.AxisOperation findOperation(org.apache.axis2.description.AxisService service, org.apache.axis2.context.MessageContext messageContext)
           
 org.apache.axis2.description.AxisService findService(org.apache.axis2.context.MessageContext messageContext)
           
 void initDispatcher()
           
protected  java.lang.String parseRequestURLForService(java.lang.String path)
          Obtain the service name from the request URL.
 
Methods inherited from class org.apache.axis2.engine.AbstractDispatcher
invoke
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
Field NAME

See Also:
Constant Field Values
Constructor Detail

ODEAxisDispatcher

public ODEAxisDispatcher()
Method Detail

findOperation

public org.apache.axis2.description.AxisOperation findOperation(org.apache.axis2.description.AxisService service,
                                                                org.apache.axis2.context.MessageContext messageContext)
                                                         throws org.apache.axis2.AxisFault
Specified by:
findOperation in class org.apache.axis2.engine.AbstractDispatcher
Throws:
org.apache.axis2.AxisFault

findService

public org.apache.axis2.description.AxisService findService(org.apache.axis2.context.MessageContext messageContext)
                                                     throws org.apache.axis2.AxisFault
Specified by:
findService in class org.apache.axis2.engine.AbstractDispatcher
Throws:
org.apache.axis2.AxisFault

initDispatcher

public void initDispatcher()
Specified by:
initDispatcher in class org.apache.axis2.engine.AbstractDispatcher

parseRequestURLForService

protected java.lang.String parseRequestURLForService(java.lang.String path)
Obtain the service name from the request URL. The request URL is expected to use the path "/processes/" under which all processes and their services are listed. Returns null if the path does not contain this part.


addElmtToOpMapping

public static void addElmtToOpMapping(java.lang.String axisServiceName,
                                      java.lang.String operationName,
                                      java.lang.String elmtName)
Associates an operation and the corresponding message part element name. Only makes sense for doc/lit services (only one part) for which the operation can't easily be guessed from the message element name.

Parameters:
axisServiceName - the service name as registered in Axis2
operationName - operation local name
elmtName - element local name