cgl.narada.wsinfra.wsr
Interface WsrSink

All Known Implementing Classes:
WsrSinkNode

public interface WsrSink


Method Summary
 EndpointReferenceType getEndpointReference()
          Retrieves the endpoint address associated with this node
 boolean processExchange(EnvelopeDocument envelopeDocument, int direction)
          Process the exchange.
 void processMessageFromApplication(EnvelopeDocument envelopeDocument, AddressingHeaders addressingHeaders)
          Create a simple Response(for particular request) coming from application
 void processPollRequest(EnvelopeDocument envelopeDocument, AddressingHeaders addressingHeaders)
          Process a PollRequest received from the source for Acknowledgements
 void processRequest(EnvelopeDocument envelopeDocument, AddressingHeaders addressingHeaders)
          Process a simple request received from the source
 void setEndpointReference(EndpointReferenceType endpointReference)
          Retrieves the endpoint address associated with this node
 

Method Detail

processExchange

public boolean processExchange(EnvelopeDocument envelopeDocument,
                               int direction)
                        throws UnknownExchangeException,
                               IncorrectExchangeException,
                               ProcessingException,
                               MessageFlowException
Process the exchange. The argument also indicates the direction in which the exchange has actually traversed.

Throws:
UnknownExchangeException
IncorrectExchangeException
ProcessingException
MessageFlowException

processRequest

public void processRequest(EnvelopeDocument envelopeDocument,
                           AddressingHeaders addressingHeaders)
                    throws WsFaultException,
                           MessageFlowException,
                           WsrStorageException
Process a simple request received from the source

Throws:
WsFaultException
MessageFlowException
WsrStorageException

processPollRequest

public void processPollRequest(EnvelopeDocument envelopeDocument,
                               AddressingHeaders addressingHeaders)
                        throws WsFaultException,
                               MessageFlowException,
                               WsrStorageException
Process a PollRequest received from the source for Acknowledgements

Throws:
WsFaultException
MessageFlowException
WsrStorageException

processMessageFromApplication

public void processMessageFromApplication(EnvelopeDocument envelopeDocument,
                                          AddressingHeaders addressingHeaders)
                                   throws WsFaultException,
                                          MessageFlowException,
                                          WsrStorageException
Create a simple Response(for particular request) coming from application

Throws:
WsFaultException
MessageFlowException
WsrStorageException

getEndpointReference

public EndpointReferenceType getEndpointReference()
Retrieves the endpoint address associated with this node


setEndpointReference

public void setEndpointReference(EndpointReferenceType endpointReference)
Retrieves the endpoint address associated with this node