Class BinaryExtension

  • All Implemented Interfaces:
    org.cometd.bayeux.server.BayeuxServer.Extension

    public class BinaryExtension
    extends org.cometd.bayeux.server.BayeuxServer.Extension.Adapter

    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.

    See Also:
    BinarySessionExtension
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.cometd.bayeux.server.BayeuxServer.Extension

        org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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)  
      • Methods inherited from class org.cometd.bayeux.server.BayeuxServer.Extension.Adapter

        rcvMeta, sendMeta
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BinaryExtension

        public BinaryExtension()
      • BinaryExtension

        public BinaryExtension​(boolean decodeToByteBuffer)
    • Method Detail

      • rcv

        public boolean rcv​(org.cometd.bayeux.server.ServerSession from,
                           org.cometd.bayeux.server.ServerMessage.Mutable message)
        Specified by:
        rcv in interface org.cometd.bayeux.server.BayeuxServer.Extension
        Overrides:
        rcv in class org.cometd.bayeux.server.BayeuxServer.Extension.Adapter
      • send

        public boolean send​(org.cometd.bayeux.server.ServerSession from,
                            org.cometd.bayeux.server.ServerSession to,
                            org.cometd.bayeux.server.ServerMessage.Mutable message)
        Specified by:
        send in interface org.cometd.bayeux.server.BayeuxServer.Extension
        Overrides:
        send in class org.cometd.bayeux.server.BayeuxServer.Extension.Adapter