org.cometd.bayeux.server
Interface ServerSession.MessageListener

All Superinterfaces:
Bayeux.BayeuxListener, EventListener, ServerSession.ServerSessionListener
Enclosing interface:
ServerSession

public static interface ServerSession.MessageListener
extends ServerSession.ServerSessionListener

Listeners objects that implement this interface will be notified of message arrival.


Method Summary
 boolean onMessage(ServerSession to, ServerSession from, ServerMessage message)
          Callback invoked when a message is received.
 

Method Detail

onMessage

boolean onMessage(ServerSession to,
                  ServerSession from,
                  ServerMessage message)

Callback invoked when a message is received.

Implementors can decide to return false to signal that the message should not be processed, meaning that other listeners will not be notified and that the message will be discarded.

Parameters:
to - the session that received the message
from - the session that sent the message
message - the message sent
Returns:
whether the processing of the message should continue


Copyright © 2008-2010 Dojo Foundation. All Rights Reserved.