cgl.narada.wsinfra
Interface WsMessageFlow

All Known Implementing Classes:
Filter, WseSinkClientService, WseSinkHandler, WseSinkProxyHelper, WseSourceClientService, WseSourceHandler, WseSourceProxyHelper, WseSubscriptionManagerHandler, WseSubscriptionManagerProxyHelper, WsInfraAxisHandler, WsrmSinkHandler, WsrmSinkProcessor, WsrmSourceProcessor, WsrmSourceRequestHandler, WsrmSourceResponseHandler, WsrSinkHandler, WsrSinkProxyHelper, WsrSourceHandler, WsrSourceProxyHelper, WsrTargetServiceHandler, WsrTargetServiceProxyHelper

public interface WsMessageFlow

This interface is to be used to facilitate plugging-in of communications and application flows into the processor. It is possible that there will be multiple implementations of this depending on the hosting environment such as Axis, XSoap, Pure TCP etc.


Field Summary
static int FROM_APPLICATION
           
static int FROM_NETWORK
           
 
Method Summary
 void enrouteToApplication(SOAPMessage soapMessage)
          Prepare to forward message over to the application.
 void enrouteToNetwork(SOAPMessage soapMessage)
          Prepare to send message over the network.
 

Field Detail

FROM_APPLICATION

static final int FROM_APPLICATION
See Also:
Constant Field Values

FROM_NETWORK

static final int FROM_NETWORK
See Also:
Constant Field Values
Method Detail

enrouteToNetwork

void enrouteToNetwork(SOAPMessage soapMessage)
                      throws MessageFlowException
Prepare to send message over the network. The message has been processed by a WsProcessor and is an outgoing message. In some implementations of the WsMessageFlow the sendTo element can be used an optimization feature so that the need to parse the SOAP message again is obviated. An exemplar of such a scenario is where there is no need to parse for the [wsa:To] element; the address contained in this element is utlimately a String.

Throws:
MessageFlowException

enrouteToApplication

void enrouteToApplication(SOAPMessage soapMessage)
                          throws MessageFlowException
Prepare to forward message over to the application. This message has been processed by the WsProcessor.

Throws:
MessageFlowException


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