org.ws4d.java.dispatch
Interface MessageListener


public interface MessageListener

Implementations of this interface can register within MessageInformer to receive notifications about inbound and outbound messages running through a DPWS framework instance.


Method Summary
 void receivedInboundMessage(Message msg, ProtocolData protocolData)
          Called each time an inbound message arrives, which matches the interest of this message listener instance (see MessageSelector).
 void receivedOutboundMessage(Message msg, ProtocolData protocolData)
          Called each time when an outbound message arrives, which matches the interest of this message listener instance (see MessageSelector).
 

Method Detail

receivedInboundMessage

void receivedInboundMessage(Message msg,
                            ProtocolData protocolData)
Called each time an inbound message arrives, which matches the interest of this message listener instance (see MessageSelector). The implementation should return as quickly as possible.

Parameters:
msg - the message of interest
protocolData - transport-specific addressing information attached to the message

receivedOutboundMessage

void receivedOutboundMessage(Message msg,
                             ProtocolData protocolData)
Called each time when an outbound message arrives, which matches the interest of this message listener instance (see MessageSelector). The implementation should return as quickly as possible.

Parameters:
msg - the message of interest
protocolData - transport-specific addressing information attached to the message