org.cometd.bayeux.server.BayeuxServer.Extension
public class BinaryExtension
extends java.lang.Object
implements org.cometd.bayeux.server.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 | Description |
---|---|
BinaryExtension() |
|
BinaryExtension(boolean decodeToByteBuffer) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
rcv(org.cometd.bayeux.server.ServerSession from,
org.cometd.bayeux.server.ServerMessage.Mutable message) |
|
boolean |
send(org.cometd.bayeux.server.ServerSession from,
org.cometd.bayeux.server.ServerSession to,
org.cometd.bayeux.server.ServerMessage.Mutable message) |
public BinaryExtension()
public BinaryExtension(boolean decodeToByteBuffer)
public boolean rcv(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerMessage.Mutable message)
rcv
in interface org.cometd.bayeux.server.BayeuxServer.Extension
public boolean send(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerSession to, org.cometd.bayeux.server.ServerMessage.Mutable message)
send
in interface org.cometd.bayeux.server.BayeuxServer.Extension
Copyright © 2008–2017 The CometD Project. All rights reserved.