cgl.narada.wsinfra.wsa.impl
Class AddressingHeadersImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsa.impl.AddressingHeadersImpl
All Implemented Interfaces:
AddressingHeaders

public class AddressingHeadersImpl
extends Object
implements AddressingHeaders

This class accumulates all WS-Addressing related headers that can be present in the Header of a SOAP message. This is useful since WS-Addressing elements are not nested.


Constructor Summary
protected AddressingHeadersImpl()
          Keep the constructor protected so that only classes in this package can create instances of this class.
 
Method Summary
 ActionDocument getAction()
          Retrieves the Action element.
 FaultToDocument getFaultTo()
          Retrieves the FaultTo element.
 FromDocument getFrom()
          Retrieves the From element.
 MessageIDDocument getMessageID()
          Retrieves the MessageID element.
 RelatesToDocument getRelatesTo()
          Retrieves the RelatesTo element.
 ReplyAfterDocument getReplyAfter()
          Retrieves the ReplyAfter element.
 ReplyToDocument getReplyTo()
          Retrieves the ReplyTo element.
 ToDocument getTo()
          Retrieves the To element.
 boolean hasAction()
          Checks if an action has been specified
 boolean hasFaultTo()
          Checks to see if the FaultTo element is available
 boolean hasFrom()
          Checks to see if the From element is available
 boolean hasMessageID()
          Checks to see if the MessageID element is available
 boolean hasRelatesTo()
          Checks to see if the RelatesTo element is available
 boolean hasReplyAfter()
          Checks to see if the ReplyAfter element is available
 boolean hasReplyTo()
          Checks to see if the ReplyTo element is available
 boolean hasTo()
          Checks to see if the To element is available
 void setAction(ActionDocument actionDocument)
          Sets the Action element
 void setFaultTo(FaultToDocument faultToDocument)
          Sets the FaultTo element
 void setFrom(FromDocument fromDocument)
          Sets the From element
 void setMessageID(MessageIDDocument messageIDDocument)
          Sets the MessageID element
 void setRelatesTo(RelatesToDocument relatesToDocument)
          Sets the RelatesTo element
 void setReplyAfter(ReplyAfterDocument replyAfterDocument)
          Sets the ReplyAfter element.
 void setReplyTo(ReplyToDocument replyToDocument)
          Sets the To element.
 void setTo(ToDocument toDocument)
          Sets the To element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressingHeadersImpl

protected AddressingHeadersImpl()
Keep the constructor protected so that only classes in this package can create instances of this class.

Method Detail

setAction

public void setAction(ActionDocument actionDocument)
Sets the Action element


getAction

public ActionDocument getAction()
Retrieves the Action element. This will return a NULL if the element is not present.

Specified by:
getAction in interface AddressingHeaders

hasAction

public boolean hasAction()
Checks if an action has been specified

Specified by:
hasAction in interface AddressingHeaders

setFrom

public void setFrom(FromDocument fromDocument)
Sets the From element


getFrom

public FromDocument getFrom()
Retrieves the From element. This will return a NULL if the element is not present.

Specified by:
getFrom in interface AddressingHeaders

hasFrom

public boolean hasFrom()
Checks to see if the From element is available

Specified by:
hasFrom in interface AddressingHeaders

setTo

public void setTo(ToDocument toDocument)
Sets the To element.


getTo

public ToDocument getTo()
Retrieves the To element. This will return a NULL if the element is not present.

Specified by:
getTo in interface AddressingHeaders

hasTo

public boolean hasTo()
Checks to see if the To element is available

Specified by:
hasTo in interface AddressingHeaders

setReplyTo

public void setReplyTo(ReplyToDocument replyToDocument)
Sets the To element.


getReplyTo

public ReplyToDocument getReplyTo()
Retrieves the ReplyTo element. This will return a NULL if the element is not present.

Specified by:
getReplyTo in interface AddressingHeaders

hasReplyTo

public boolean hasReplyTo()
Checks to see if the ReplyTo element is available

Specified by:
hasReplyTo in interface AddressingHeaders

setReplyAfter

public void setReplyAfter(ReplyAfterDocument replyAfterDocument)
Sets the ReplyAfter element.


getReplyAfter

public ReplyAfterDocument getReplyAfter()
Retrieves the ReplyAfter element. This will return a NULL if the element is not present.

Specified by:
getReplyAfter in interface AddressingHeaders

hasReplyAfter

public boolean hasReplyAfter()
Checks to see if the ReplyAfter element is available

Specified by:
hasReplyAfter in interface AddressingHeaders

setFaultTo

public void setFaultTo(FaultToDocument faultToDocument)
Sets the FaultTo element


getFaultTo

public FaultToDocument getFaultTo()
Retrieves the FaultTo element. This will return a NULL if the element is not present.

Specified by:
getFaultTo in interface AddressingHeaders

hasFaultTo

public boolean hasFaultTo()
Checks to see if the FaultTo element is available

Specified by:
hasFaultTo in interface AddressingHeaders

setRelatesTo

public void setRelatesTo(RelatesToDocument relatesToDocument)
Sets the RelatesTo element


getRelatesTo

public RelatesToDocument getRelatesTo()
Retrieves the RelatesTo element. This will return a NULL if the element is not present.

Specified by:
getRelatesTo in interface AddressingHeaders

hasRelatesTo

public boolean hasRelatesTo()
Checks to see if the RelatesTo element is available

Specified by:
hasRelatesTo in interface AddressingHeaders

setMessageID

public void setMessageID(MessageIDDocument messageIDDocument)
Sets the MessageID element


getMessageID

public MessageIDDocument getMessageID()
Retrieves the MessageID element. This will return a NULL if the element is not present.

Specified by:
getMessageID in interface AddressingHeaders

hasMessageID

public boolean hasMessageID()
Checks to see if the MessageID element is available

Specified by:
hasMessageID in interface AddressingHeaders


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