org.apache.axis2.engine
Class AddressingBasedDispatcher

java.lang.Object
  extended byorg.apache.axis2.handlers.AbstractHandler
      extended byorg.apache.axis2.engine.AbstractDispatcher
          extended byorg.apache.axis2.engine.AddressingBasedDispatcher
All Implemented Interfaces:
AddressingConstants, Handler, Serializable

public class AddressingBasedDispatcher
extends AbstractDispatcher
implements AddressingConstants

Dispatcher based on the WS-Addressing properties.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.addressing.AddressingConstants
AddressingConstants.Final, AddressingConstants.Submission
 
Field Summary
static QName NAME
          Field NAME
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Fields inherited from interface org.apache.axis2.addressing.AddressingConstants
EPR_ADDRESS, EPR_REFERENCE_PARAMETERS, EPR_SERVICE_NAME, IS_ADDR_INFO_ALREADY_PROCESSED, PARAM_SERVICE_GROUP_CONTEXT_ID, WS_ADDRESSING_VERSION, WSA_ACTION, WSA_DEFAULT_PREFIX, WSA_FAULT_TO, WSA_FROM, WSA_MESSAGE_ID, WSA_RELATES_TO, WSA_RELATES_TO_RELATIONSHIP_TYPE, WSA_REPLY_TO, WSA_TO
 
Constructor Summary
AddressingBasedDispatcher()
           
 
Method Summary
 AxisOperation findOperation(AxisService service, MessageContext messageContext)
          Called by Axis Engine to find the operation.
 AxisService findService(MessageContext messageContext)
          Called by Axis Engine to find the service.
 void initDispatcher()
           
 void invoke(MessageContext msgctx)
          Invoke is called to do the actual work of the Handler object.
 
Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, 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 QName NAME
Field NAME

Constructor Detail

AddressingBasedDispatcher

public AddressingBasedDispatcher()
Method Detail

findOperation

public AxisOperation findOperation(AxisService service,
                                   MessageContext messageContext)
                            throws AxisFault
Description copied from class: AbstractDispatcher
Called by Axis Engine to find the operation.

Specified by:
findOperation in class AbstractDispatcher
Parameters:
service -
messageContext -
Returns:
Returns AxisOperation.
Throws:
AxisFault

findService

public AxisService findService(MessageContext messageContext)
                        throws AxisFault
Description copied from class: AbstractDispatcher
Called by Axis Engine to find the service.

Specified by:
findService in class AbstractDispatcher
Parameters:
messageContext -
Returns:
Returns AxisService.
Throws:
AxisFault

initDispatcher

public void initDispatcher()
Specified by:
initDispatcher in class AbstractDispatcher

invoke

public void invoke(MessageContext msgctx)
            throws AxisFault
Description copied from interface: Handler
Invoke is called to do the actual work of the Handler object. If there is a fault during the processing of this method it is invoke's job to catch the exception and undo any partial work that has been completed. Once we leave 'invoke' if a fault is thrown, this class's 'onFault' method will be called. Invoke should rethrow any exceptions it catches, wrapped in an AxisFault.

Specified by:
invoke in interface Handler
Overrides:
invoke in class AbstractDispatcher
Parameters:
msgctx -
Throws:
AxisFault