org.apache.axis2.handlers.addressing
Class AddressingInHandler

java.lang.Object
  extended byorg.apache.axis2.handlers.AbstractHandler
      extended byorg.apache.axis2.handlers.addressing.AddressingHandler
          extended byorg.apache.axis2.handlers.addressing.AddressingInHandler
All Implemented Interfaces:
AddressingConstants, Handler
Direct Known Subclasses:
AddressingFinalInHandler, AddressingSubmissionInHandler

public abstract class AddressingInHandler
extends AddressingHandler
implements AddressingConstants


Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.addressing.AddressingConstants
AddressingConstants.Final, AddressingConstants.Submission
 
Nested classes inherited from class org.apache.axis2.engine.Handler
Handler.InvocationResponse
 
Field Summary
 
Fields inherited from class org.apache.axis2.handlers.addressing.AddressingHandler
addressingNamespace, addressingVersion, isAddressingOptional
 
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc
 
Fields inherited from interface org.apache.axis2.addressing.AddressingConstants
ADD_MUST_UNDERSTAND_TO_ADDRESSING_HEADERS, ADDRESSING_OPTIONAL, ADDRESSING_REQUIRED, ADDRESSING_UNSPECIFIED, ANONYMOUS, DISABLE_ADDRESSING_FOR_OUT_MESSAGES, EPR_ADDRESS, EPR_REFERENCE_PARAMETERS, EPR_SERVICE_NAME, FAULT_ACTION_NOT_SUPPORTED, FAULT_ACTION_NOT_SUPPORTED_REASON, IS_ADDR_INFO_ALREADY_PROCESSED, PARAM_SERVICE_GROUP_CONTEXT_ID, REPLACE_ADDRESSING_HEADERS, USING_ADDRESSING, 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, WSAW_ANONYMOUS_PARAMETER_NAME
 
Constructor Summary
AddressingInHandler()
           
 
Method Summary
protected abstract  void checkForMandatoryHeaders(ArrayList alreadyFoundAddrHeader, MessageContext messageContext)
           
protected  Options extractAddressingInformation(org.apache.axiom.soap.SOAPHeader header, MessageContext messageContext, ArrayList addressingHeaders, String namespace)
           
protected abstract  void extractToEprReferenceParameters(EndpointReference toEPR, org.apache.axiom.soap.SOAPHeader header, String namespace)
           
 Handler.InvocationResponse invoke(MessageContext msgContext)
          Invoke is called to do the actual work of the Handler object.
protected abstract  void setDefaults(ArrayList alreadyFoundAddrHeader, MessageContext messageContext)
           
 
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
 

Constructor Detail

AddressingInHandler

public AddressingInHandler()
Method Detail

invoke

public Handler.InvocationResponse invoke(MessageContext msgContext)
                                  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. N.B. This method may be called concurrently from multiple threads.

Specified by:
invoke in interface Handler
Parameters:
msgContext - the MessageContext to process with this Handler.
Returns:
An InvocationResponse that indicates what the next step in the message processing should be.
Throws:
AxisFault - if the handler encounters an error

extractAddressingInformation

protected Options extractAddressingInformation(org.apache.axiom.soap.SOAPHeader header,
                                               MessageContext messageContext,
                                               ArrayList addressingHeaders,
                                               String namespace)
                                        throws AxisFault
Throws:
AxisFault

checkForMandatoryHeaders

protected abstract void checkForMandatoryHeaders(ArrayList alreadyFoundAddrHeader,
                                                 MessageContext messageContext)
                                          throws AxisFault
Throws:
AxisFault

setDefaults

protected abstract void setDefaults(ArrayList alreadyFoundAddrHeader,
                                    MessageContext messageContext)
                             throws AxisFault
Throws:
AxisFault

extractToEprReferenceParameters

protected abstract void extractToEprReferenceParameters(EndpointReference toEPR,
                                                        org.apache.axiom.soap.SOAPHeader header,
                                                        String namespace)