Package org.cometd.client.ext
Class BinaryExtension
java.lang.Object
org.cometd.bayeux.client.ClientSession.Extension.Adapter
org.cometd.client.ext.BinaryExtension
- All Implemented Interfaces:
ClientSession.Extension
public class BinaryExtension extends ClientSession.Extension.Adapter
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.client.ClientSession.Extension
ClientSession.Extension.Adapter -
Constructor Summary
Constructors Constructor Description BinaryExtension()BinaryExtension(boolean decodeToByteBuffer) -
Method Summary
Modifier and Type Method Description booleanrcv(ClientSession session, Message.Mutable message)booleansend(ClientSession session, Message.Mutable message)Methods inherited from class org.cometd.bayeux.client.ClientSession.Extension.Adapter
rcvMeta, sendMeta
-
Constructor Details
-
BinaryExtension
public BinaryExtension() -
BinaryExtension
public BinaryExtension(boolean decodeToByteBuffer)
-
-
Method Details
-
rcv
- Specified by:
rcvin interfaceClientSession.Extension- Overrides:
rcvin classClientSession.Extension.Adapter
-
send
- Specified by:
sendin interfaceClientSession.Extension- Overrides:
sendin classClientSession.Extension.Adapter
-