|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface BayeuxServer.Extension
Extension API for bayeux server.
Implementations of this interface allow to modify incoming and outgoing messages respectively just before and just after they are handled by the implementation, either on client side or server side.
Extensions are be registered in order and one extension may allow subsequent extensions to process the message by returning true from the callback method, or forbid further processing by returning false.
BayeuxServer.addExtension(Extension)
Method Summary | |
---|---|
boolean |
rcv(ServerSession from,
ServerMessage.Mutable message)
Callback method invoked every time a normal message is incoming. |
boolean |
rcvMeta(ServerSession from,
ServerMessage.Mutable message)
Callback method invoked every time a meta message is incoming. |
boolean |
send(ServerMessage.Mutable message)
Callback method invoked every time a normal message is outgoing. |
boolean |
sendMeta(ServerSession to,
ServerMessage.Mutable message)
Callback method invoked every time a meta message is outgoing. |
Method Detail |
---|
boolean rcv(ServerSession from, ServerMessage.Mutable message)
from
- the session that sent the messagemessage
- the incoming message
boolean rcvMeta(ServerSession from, ServerMessage.Mutable message)
from
- the session that sent the messagemessage
- the incoming meta message
boolean send(ServerMessage.Mutable message)
to
- the session receiving the message, or null for a publishmessage
- the outgoing message
boolean sendMeta(ServerSession to, ServerMessage.Mutable message)
to
- the session receiving the messagemessage
- the outgoing meta message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |