Class WebSocketTransport

  • All Implemented Interfaces:
    org.cometd.bayeux.server.ServerTransport, org.cometd.bayeux.Transport, org.eclipse.jetty.util.component.Dumpable

    public class WebSocketTransport
    extends org.cometd.websocket.server.common.AbstractWebSocketTransport
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.cometd.server.AbstractServerTransport

        org.cometd.server.AbstractServerTransport.Scheduler
    • Field Summary

      • Fields inherited from class org.cometd.websocket.server.common.AbstractWebSocketTransport

        BUFFER_SIZE_OPTION, COMETD_URL_MAPPING_OPTION, ENABLE_EXTENSION_PREFIX_OPTION, IDLE_TIMEOUT_OPTION, MESSAGES_PER_FRAME_OPTION, NAME, PREFIX, PROTOCOL_OPTION, REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
      • Fields inherited from class org.cometd.server.AbstractServerTransport

        _logger, ALLOW_MESSAGE_DELIVERY_DURING_HANDSHAKE, HANDSHAKE_RECONNECT_OPTION, INTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_MESSAGE_SIZE_OPTION, MAX_PROCESSING_OPTION, MAX_QUEUE_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketTransport​(org.cometd.server.BayeuxServerImpl bayeux)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean checkOrigin​(java.lang.String origin)  
      void init()  
      protected void modifyHandshake​(javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)  
      protected java.lang.Object newWebSocketEndPoint​(org.cometd.bayeux.server.BayeuxContext bayeuxContext)  
      • Methods inherited from class org.cometd.websocket.server.common.AbstractWebSocketTransport

        getMessagesPerFrame, getProtocol, isRequireHandshakePerConnection, normalizeURLMapping, onClose, toJSON, writeComplete
      • Methods inherited from class org.cometd.server.AbstractServerTransport

        allowMessageDeliveryDuringHandshake, destroy, dump, dump, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getMaxMessageSize, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, parseMessages, parseMessages, processReply, scheduleExpiration, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMaxMessageSize, setMetaConnectDeliveryOnly, setTimeout, sweep, toJSONBytes, toString
      • Methods inherited from class org.cometd.common.AbstractTransport

        getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.cometd.bayeux.Transport

        getName, getOption, getOptionNames, getOptionPrefix
    • Constructor Detail

      • WebSocketTransport

        public WebSocketTransport​(org.cometd.server.BayeuxServerImpl bayeux)
    • Method Detail

      • init

        public void init()
        Overrides:
        init in class org.cometd.websocket.server.common.AbstractWebSocketTransport
      • checkOrigin

        protected boolean checkOrigin​(java.lang.String origin)
      • modifyHandshake

        protected void modifyHandshake​(javax.websocket.server.HandshakeRequest request,
                                       javax.websocket.HandshakeResponse response)
      • newWebSocketEndPoint

        protected java.lang.Object newWebSocketEndPoint​(org.cometd.bayeux.server.BayeuxContext bayeuxContext)