Package org.cometd.bayeux.server
Class ServerSession.Extension.Adapter
java.lang.Object
org.cometd.bayeux.server.ServerSession.Extension.Adapter
- All Implemented Interfaces:
ServerSession.Extension
- Direct Known Subclasses:
BinarySessionExtension
- Enclosing interface:
- ServerSession.Extension
public static class ServerSession.Extension.Adapter extends Object implements ServerSession.Extension
Empty implementation of
ServerSession.Extension
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ServerSession.Extension
ServerSession.Extension.Adapter
-
Constructor Summary
Constructors Constructor Description Adapter()
-
Method Summary
Modifier and Type Method Description boolean
rcv(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a normal message is incoming.boolean
rcvMeta(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a meta message is incoming.ServerMessage
send(ServerSession session, ServerMessage message)
Callback method invoked every time a normal message is outgoing.boolean
sendMeta(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a meta message is outgoing.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
rcv
Description copied from interface:ServerSession.Extension
Callback method invoked every time a normal message is incoming.
- Specified by:
rcv
in interfaceServerSession.Extension
- Parameters:
session
- the session that sent the messagemessage
- the incoming message- Returns:
- true if message processing should continue, false if it should stop
-
rcvMeta
Description copied from interface:ServerSession.Extension
Callback method invoked every time a meta message is incoming.
- Specified by:
rcvMeta
in interfaceServerSession.Extension
- Parameters:
session
- the session that is sent the messagemessage
- the incoming meta message- Returns:
- true if message processing should continue, false if it should stop
-
send
Description copied from interface:ServerSession.Extension
Callback method invoked every time a normal message is outgoing.
- Specified by:
send
in interfaceServerSession.Extension
- Parameters:
session
- the session receiving the messagemessage
- the outgoing message- Returns:
- The message to send or null to not send the message
-
sendMeta
Description copied from interface:ServerSession.Extension
Callback method invoked every time a meta message is outgoing.
- Specified by:
sendMeta
in interfaceServerSession.Extension
- Parameters:
session
- the session receiving the messagemessage
- the outgoing meta message- Returns:
- true if message processing should continue, false if it should stop
-