public class BinaryExtension extends Object implements 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.
BinarySessionExtension| Constructor and Description |
|---|
BinaryExtension() |
BinaryExtension(boolean decodeToByteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
rcv(ServerSession from,
ServerMessage.Mutable message) |
boolean |
send(ServerSession from,
ServerSession to,
ServerMessage.Mutable message) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitincoming, outgoing, rcvMeta, sendMetapublic BinaryExtension()
public BinaryExtension(boolean decodeToByteBuffer)
public boolean rcv(ServerSession from, ServerMessage.Mutable message)
rcv in interface BayeuxServer.Extensionpublic boolean send(ServerSession from, ServerSession to, ServerMessage.Mutable message)
send in interface BayeuxServer.ExtensionCopyright © 2008–2024 The CometD Project. All rights reserved.