Package org.cometd.client.ext
Class BinaryExtension
java.lang.Object
org.cometd.client.ext.BinaryExtension
- All Implemented Interfaces:
ClientSession.Extension
A client 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanrcv(ClientSession session, org.cometd.bayeux.Message.Mutable message) booleansend(ClientSession session, org.cometd.bayeux.Message.Mutable message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cometd.bayeux.client.ClientSession.Extension
incoming, outgoing, rcvMeta, sendMeta
-
Constructor Details
-
BinaryExtension
public BinaryExtension() -
BinaryExtension
public BinaryExtension(boolean decodeToByteBuffer)
-
-
Method Details
-
rcv
- Specified by:
rcvin interfaceClientSession.Extension
-
send
- Specified by:
sendin interfaceClientSession.Extension
-