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, Serializable
Direct Known Subclasses:
AddressingFinalInHandler, AddressingSubmissionInHandler

public abstract class AddressingInHandler
extends AddressingHandler
implements AddressingConstants

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.axis2.addressing.AddressingConstants
AddressingConstants.Final, AddressingConstants.Submission
 
Field Summary
 
Fields inherited from class org.apache.axis2.handlers.addressing.AddressingHandler
addressingNamespace, addressingVersion, anonymousURI, isAddressingOptional, logger
 
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
AddressingInHandler()
           
 
Method Summary
protected  boolean checkElement(QName expectedQName, QName actualQName)
           
protected  Options extractAddressingInformation(org.apache.ws.commons.soap.SOAPHeader header, MessageContext messageContext, ArrayList addressingHeaders, String addressingNamespace)
           
protected abstract  void extractEPRInformation(org.apache.ws.commons.soap.SOAPHeaderBlock headerBlock, EndpointReference epr, String addressingNamespace)
          Given the soap header block, this should extract the information within EPR.
protected abstract  void extractToEprReferenceParameters(EndpointReference toEPR, org.apache.ws.commons.soap.SOAPHeader header)
           
 void invoke(MessageContext msgContext)
          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, revoke, 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 void 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. 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
Parameters:
msgContext - the MessageContext to process with this Handler.
Throws:
AxisFault - if the handler encounters an error

extractAddressingInformation

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

extractToEprReferenceParameters

protected abstract void extractToEprReferenceParameters(EndpointReference toEPR,
                                                        org.apache.ws.commons.soap.SOAPHeader header)

extractEPRInformation

protected abstract void extractEPRInformation(org.apache.ws.commons.soap.SOAPHeaderBlock headerBlock,
                                              EndpointReference epr,
                                              String addressingNamespace)
Given the soap header block, this should extract the information within EPR.

Parameters:
headerBlock -
epr -
addressingNamespace -

checkElement

protected boolean checkElement(QName expectedQName,
                               QName actualQName)
Parameters:
expectedQName -
actualQName -