Package org.cometd.server.ext
Class TimestampExtension
java.lang.Object
org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
org.cometd.server.ext.TimestampExtension
- All Implemented Interfaces:
BayeuxServer.Extension
public class TimestampExtension extends BayeuxServer.Extension.Adapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension
BayeuxServer.Extension.Adapter
-
Constructor Summary
Constructors Constructor Description TimestampExtension()
TimestampExtension(String format)
TimestampExtension(String format, TimeZone tz)
-
Method Summary
Modifier and Type Method Description boolean
send(ServerSession from, ServerSession to, 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.
-
Constructor Details
-
TimestampExtension
public TimestampExtension() -
TimestampExtension
-
TimestampExtension
-
-
Method Details
-
send
Description copied from interface:BayeuxServer.Extension
Callback method invoked every time a normal message is outgoing.
- Specified by:
send
in interfaceBayeuxServer.Extension
- Overrides:
send
in classBayeuxServer.Extension.Adapter
- Parameters:
from
- the session that sent the message or nullto
- the session the message is sent to, or null for a publish.message
- the outgoing message- Returns:
- true if message processing should continue, false if it should stop
-
sendMeta
Description copied from interface:BayeuxServer.Extension
Callback method invoked every time a meta message is outgoing.
- Specified by:
sendMeta
in interfaceBayeuxServer.Extension
- Overrides:
sendMeta
in classBayeuxServer.Extension.Adapter
- Parameters:
to
- the session the message is sent to, or null for a publish.message
- the outgoing meta message- Returns:
- true if message processing should continue, false if it should stop
-