cgl.narada.wsinfra.wsa
Interface WsaEprRules

All Known Implementing Classes:
WsaEprRulesImpl

public interface 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
 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.
 

Method Detail

prepareSOAPEnvelope

public 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.


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.

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