Class BinarySessionExtension

java.lang.Object
org.cometd.server.ext.BinarySessionExtension
All Implemented Interfaces:
org.cometd.bayeux.server.ServerSession.Extension

public class BinarySessionExtension
extends java.lang.Object
implements org.cometd.bayeux.server.ServerSession.Extension

An extension that encodes/decodes binary data for a ServerSession.

See Also:
BinaryExtension
  • Nested Class Summary

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

    org.cometd.bayeux.server.ServerSession.Extension.Adapter
  • Constructor Summary

    Constructors 
    Constructor Description
    BinarySessionExtension​(org.cometd.bayeux.server.BayeuxServer bayeuxServer)  
    BinarySessionExtension​(org.cometd.bayeux.server.BayeuxServer bayeuxServer, boolean decodeToByteBuffer)  
  • Method Summary

    Modifier and Type Method Description
    boolean rcv​(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage.Mutable message)  
    org.cometd.bayeux.server.ServerMessage send​(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage 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.server.ServerSession.Extension

    incoming, outgoing, rcvMeta, sendMeta
  • Constructor Details

    • BinarySessionExtension

      public BinarySessionExtension​(org.cometd.bayeux.server.BayeuxServer bayeuxServer)
    • BinarySessionExtension

      public BinarySessionExtension​(org.cometd.bayeux.server.BayeuxServer bayeuxServer, boolean decodeToByteBuffer)
  • Method Details

    • rcv

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

      public org.cometd.bayeux.server.ServerMessage send​(org.cometd.bayeux.server.ServerSession session, org.cometd.bayeux.server.ServerMessage message)
      Specified by:
      send in interface org.cometd.bayeux.server.ServerSession.Extension