Package org.cometd.server.ext
Class BinarySessionExtension
- java.lang.Object
-
- org.cometd.server.ext.BinarySessionExtension
-
- All Implemented Interfaces:
ServerSession.Extension
public class BinarySessionExtension extends Object implements ServerSession.Extension
An extension that encodes/decodes binary data for a
ServerSession.- See Also:
BinaryExtension
-
-
Constructor Summary
Constructors Constructor Description BinarySessionExtension(BayeuxServer bayeuxServer)BinarySessionExtension(BayeuxServer bayeuxServer, boolean decodeToByteBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrcv(ServerSession session, ServerMessage.Mutable message)ServerMessagesend(ServerSession sender, ServerSession session, ServerMessage message)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cometd.bayeux.server.ServerSession.Extension
incoming, outgoing, rcvMeta, sendMeta
-
-
-
-
Constructor Detail
-
BinarySessionExtension
public BinarySessionExtension(BayeuxServer bayeuxServer)
-
BinarySessionExtension
public BinarySessionExtension(BayeuxServer bayeuxServer, boolean decodeToByteBuffer)
-
-
Method Detail
-
rcv
public boolean rcv(ServerSession session, ServerMessage.Mutable message)
- Specified by:
rcvin interfaceServerSession.Extension
-
send
public ServerMessage send(ServerSession sender, ServerSession session, ServerMessage message)
- Specified by:
sendin interfaceServerSession.Extension
-
-