cgl.narada.wsinfra.wsa.impl
Class ParseWsaHeadersImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsa.impl.ParseWsaHeadersImpl
All Implemented Interfaces:
ParseWsaHeaders

public class ParseWsaHeadersImpl
extends Object
implements ParseWsaHeaders

This is a utility class which takes an XmlCursor and retrives all the WS-Addressing headers that can be located.


Method Summary
 ActionDocument getAction(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:Action] from within the SOAP envelope.
 AddressingHeaders getAddressingHeaders(EnvelopeDocument envelopeDocument)
          This method retrives the WS-Addressing headers that are available within this XmlCursor
 FaultToDocument getFaultTo(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:FaultTo] from within the SOAP envelope.
 FromDocument getFrom(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:From] from within the SOAP envelope.
static ParseWsaHeaders getInstance()
           
 MessageIDDocument getMessageID(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:MessageID] from within the SOAP envelope.
 RelatesToDocument getRelatesTo(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:RelatesTo] from within the SOAP envelope.
 ReplyAfterDocument getReplyAfter(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:ReplyAfter] from within the SOAP envelope.
 ReplyToDocument getReplyTo(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:ReplyTo] from within the SOAP envelope.
 ToDocument getTo(EnvelopeDocument envelopeDocument)
          Retrive the [wsa:To] from within the SOAP envelope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ParseWsaHeaders getInstance()

getAddressingHeaders

public AddressingHeaders getAddressingHeaders(EnvelopeDocument envelopeDocument)
                                       throws ParsingException
This method retrives the WS-Addressing headers that are available within this XmlCursor

Specified by:
getAddressingHeaders in interface ParseWsaHeaders
Throws:
ParsingException

getAction

public ActionDocument getAction(EnvelopeDocument envelopeDocument)
                         throws ParsingException
Retrive the [wsa:Action] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getAction in interface ParseWsaHeaders
Throws:
ParsingException

getFrom

public FromDocument getFrom(EnvelopeDocument envelopeDocument)
                     throws ParsingException
Retrive the [wsa:From] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getFrom in interface ParseWsaHeaders
Throws:
ParsingException

getTo

public ToDocument getTo(EnvelopeDocument envelopeDocument)
                 throws ParsingException
Retrive the [wsa:To] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getTo in interface ParseWsaHeaders
Throws:
ParsingException

getReplyTo

public ReplyToDocument getReplyTo(EnvelopeDocument envelopeDocument)
                           throws ParsingException
Retrive the [wsa:ReplyTo] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getReplyTo in interface ParseWsaHeaders
Throws:
ParsingException

getReplyAfter

public ReplyAfterDocument getReplyAfter(EnvelopeDocument envelopeDocument)
                                 throws ParsingException
Retrive the [wsa:ReplyAfter] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getReplyAfter in interface ParseWsaHeaders
Throws:
ParsingException

getFaultTo

public FaultToDocument getFaultTo(EnvelopeDocument envelopeDocument)
                           throws ParsingException
Retrive the [wsa:FaultTo] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getFaultTo in interface ParseWsaHeaders
Throws:
ParsingException

getRelatesTo

public RelatesToDocument getRelatesTo(EnvelopeDocument envelopeDocument)
                               throws ParsingException
Retrive the [wsa:RelatesTo] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getRelatesTo in interface ParseWsaHeaders
Throws:
ParsingException

getMessageID

public MessageIDDocument getMessageID(EnvelopeDocument envelopeDocument)
                               throws ParsingException
Retrive the [wsa:MessageID] from within the SOAP envelope. If this element IS NOT present a null is returned. If the element IS present and if there are problems parsing the element a parsing exception is thrown.

Specified by:
getMessageID in interface ParseWsaHeaders
Throws:
ParsingException


For comments and suggestions please send e-mail to The NaradaBrokering Project