org.caleigo.toolkit.tunnel
Interface IMessageConsumer

All Known Implementing Classes:
HTTPTunnelServer.CloseMessageConsumer, LoginService.LoginServiceMessageConsumer, ProxyHandler, ServiceProviderServer.MessageConsumer, TunneledDataService.TunneledDataTransaction

public interface IMessageConsumer

Consumes messages that are received by an ITunnel.

Version:
1.00
Author:
Dennis Zikovic

Method Summary
 boolean acceptsMessage(java.lang.Object message)
          Returns true if this IMessageConsumer accepts the message.
 java.lang.Object answerMessage(java.lang.Object message)
          Tells the IMessageConsumer to consume a message and returns a new message that will be delivered to the sender of the originial message.
 void consumeMessage(java.lang.Object message)
          Tells the IMessageConsumer to consume a message.
 

Method Detail

acceptsMessage

public boolean acceptsMessage(java.lang.Object message)
Returns true if this IMessageConsumer accepts the message. This method is allways called before consumeMessage for any given message.


consumeMessage

public void consumeMessage(java.lang.Object message)
Tells the IMessageConsumer to consume a message.


answerMessage

public java.lang.Object answerMessage(java.lang.Object message)
Tells the IMessageConsumer to consume a message and returns a new message that will be delivered to the sender of the originial message.



Copyright © 2005 Caleigo. All Rights Reserved.