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, wait
incoming, outgoing, rcvMeta, sendMeta
public BinaryExtension()
public BinaryExtension(boolean decodeToByteBuffer)
public boolean rcv(ServerSession from, ServerMessage.Mutable message)
rcv
in interface BayeuxServer.Extension
public boolean send(ServerSession from, ServerSession to, ServerMessage.Mutable message)
send
in interface BayeuxServer.Extension
Copyright © 2008–2023 The CometD Project. All rights reserved.