Package org.cometd.client.ext
Class BinaryExtension
- java.lang.Object
-
- org.cometd.client.ext.BinaryExtension
-
- All Implemented Interfaces:
ClientSession.Extension
public class BinaryExtension extends Object implements ClientSession.Extension
A client extension that encodes
byte[]orByteBufferinto aBinaryDataobject using theZ85format for outgoing messages, and decodesBinaryDataobjects back intobyte[]orByteBufferfor 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanrcv(ClientSession session, Message.Mutable message)booleansend(ClientSession session, Message.Mutable 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.client.ClientSession.Extension
incoming, outgoing, rcvMeta, sendMeta
-
-
-
-
Method Detail
-
rcv
public boolean rcv(ClientSession session, Message.Mutable message)
- Specified by:
rcvin interfaceClientSession.Extension
-
send
public boolean send(ClientSession session, Message.Mutable message)
- Specified by:
sendin interfaceClientSession.Extension
-
-