cgl.narada.wsinfra.wsa.impl
Class WsaEprRulesImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsa.impl.WsaEprRulesImpl
All Implemented Interfaces:
WsaEprRules

public class WsaEprRulesImpl
extends Object
implements WsaEprRules

This is a utility class which enforces rules related to the creation of SOAP messages that are targetted to specific Endpoints. WS-Addrressing rules require each element of ReferenceProperties and Reference Parameters to be included with the Header of the SOAP message.


Method Summary
static WsaEprRules getInstance()
           
 EnvelopeDocument prepareSOAPEnvelope(EndpointReferenceType epr)
          Prepares a SOAP envelope to ensure that the WSA rules regarding the mapping of EPRs to SOAP header elements is enforced.
 void prepareSOAPEnvelope(EnvelopeDocument envelopeDocument, EndpointReferenceType epr)
          Adds the [wsa:To] element to the specified envelope document based on the rules specified in WS-Addressing.
 EndpointReferenceType sendTo(AddressingHeaders addressingHeaders)
          This method returns the endpoint reference type to which a message must be issued to, based on the supplied addressingHeaders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsaEprRules getInstance()

prepareSOAPEnvelope

public EnvelopeDocument prepareSOAPEnvelope(EndpointReferenceType epr)
Description copied from interface: WsaEprRules
Prepares a SOAP envelope to ensure that the WSA rules regarding the mapping of EPRs to SOAP header elements is enforced.

Specified by:
prepareSOAPEnvelope in interface WsaEprRules

prepareSOAPEnvelope

public void prepareSOAPEnvelope(EnvelopeDocument envelopeDocument,
                                EndpointReferenceType epr)
                         throws ProcessingException
Adds the [wsa:To] element to the specified envelope document based on the rules specified in WS-Addressing.

Specified by:
prepareSOAPEnvelope in interface WsaEprRules
Throws:
ProcessingException

sendTo

public EndpointReferenceType sendTo(AddressingHeaders addressingHeaders)
This method returns the endpoint reference type to which a message must be issued to, based on the supplied addressingHeaders. This method returns a NULL if either the addressingHeders is NULL or any one of the following elements viz. ReplyTo or From - is not present in the supplied AddressingHeaders

Specified by:
sendTo in interface WsaEprRules


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