org.cometd.bayeux.client
Interface ClientSession.Extension

Enclosing interface:
ClientSession

public static interface ClientSession.Extension

Extension API for client session.

See Also:
ClientSession.addExtension(Extension)

Method Summary
 boolean rcv(ClientSession session, Message.Mutable message)
          Callback method invoked every time a normal message is incoming.
 boolean rcvMeta(ClientSession session, Message.Mutable message)
          Callback method invoked every time a meta message is incoming.
 boolean send(ClientSession session, Message.Mutable message)
          Callback method invoked every time a normal message is outgoing.
 boolean sendMeta(ClientSession session, Message.Mutable message)
          Callback method invoked every time a meta message is outgoing.
 

Method Detail

rcv

boolean rcv(ClientSession session,
            Message.Mutable message)
Callback method invoked every time a normal message is incoming.

Parameters:
session - the session object
message - the incoming message
Returns:
true if message processing should continue, false if it should stop

rcvMeta

boolean rcvMeta(ClientSession session,
                Message.Mutable message)
Callback method invoked every time a meta message is incoming.

Parameters:
session - the session object
message - the incoming meta message
Returns:
true if message processing should continue, false if it should stop

send

boolean send(ClientSession session,
             Message.Mutable message)
Callback method invoked every time a normal message is outgoing.

Parameters:
session - the session object
message - the outgoing message
Returns:
true if message processing should continue, false if it should stop

sendMeta

boolean sendMeta(ClientSession session,
                 Message.Mutable message)
Callback method invoked every time a meta message is outgoing.

Parameters:
session - the session object
message - the outgoing meta message
Returns:
true if message processing should continue, false if it should stop


Copyright © 2010 Dojo Foundation. All Rights Reserved.