Class BinaryExtension
java.lang.Object
org.cometd.server.ext.BinaryExtension
- All Implemented Interfaces:
org.cometd.bayeux.server.BayeuxServer.Extension
public class BinaryExtension
extends Object
implements org.cometd.bayeux.server.BayeuxServer.Extension
A server extension that encodes byte[] or ByteBuffer into a BinaryData
object using the Z85 format for outgoing messages, and decodes BinaryData
objects back into byte[] or ByteBuffer for incoming messages.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanrcv(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerMessage.Mutable message) booleansend(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerSession to, org.cometd.bayeux.server.ServerMessage.Mutable message) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension
incoming, outgoing, rcvMeta, sendMeta
-
Constructor Details
-
BinaryExtension
public BinaryExtension() -
BinaryExtension
public BinaryExtension(boolean decodeToByteBuffer)
-
-
Method Details
-
rcv
public boolean rcv(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerMessage.Mutable message) - Specified by:
rcvin interfaceorg.cometd.bayeux.server.BayeuxServer.Extension
-
send
public boolean send(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerSession to, org.cometd.bayeux.server.ServerMessage.Mutable message) - Specified by:
sendin interfaceorg.cometd.bayeux.server.BayeuxServer.Extension
-