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