public static interface ServerSession.Extension
Extension API for ServerSession
.
Implementations of this interface allow to modify incoming and outgoing messages
for a particular session, before any other processing performed by the implementation
but after BayeuxServer.Extension
processing.
Multiple extensions can be registered; the extension receive methods are invoked in registration order, while the extension send methods are invoked in registration reverse order.
Modifier and Type | Interface and Description |
---|---|
static class |
ServerSession.Extension.Adapter
Empty implementation of
ServerSession.Extension . |
Modifier and Type | Method and 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.
|
boolean rcv(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a normal message is incoming.
session
- the session that sent the messagemessage
- the incoming messageboolean rcvMeta(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a meta message is incoming.
session
- the session that is sent the messagemessage
- the incoming meta messageServerMessage send(ServerSession session, ServerMessage message)
Callback method invoked every time a normal message is outgoing.
session
- the session receiving the messagemessage
- the outgoing messageboolean sendMeta(ServerSession session, ServerMessage.Mutable message)
Callback method invoked every time a meta message is outgoing.
session
- the session receiving the messagemessage
- the outgoing meta messageCopyright © 2008–2017 The CometD Project. All rights reserved.