Class JsrEndpointEventDriver

  • All Implemented Interfaces:
    org.eclipse.jetty.util.component.LifeCycle, org.eclipse.jetty.websocket.api.extensions.IncomingFrames, org.eclipse.jetty.websocket.common.events.EventDriver

    public class JsrEndpointEventDriver
    extends AbstractJsrEventDriver
    EventDriver for websocket that extend from Endpoint
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver

        activeMessage, policy, session, targetLog, websocket
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(JsrSession jsrsession)  
      void onBinaryFrame​(java.nio.ByteBuffer buffer, boolean fin)  
      void onBinaryMessage​(byte[] data)  
      protected void onClose​(javax.websocket.CloseReason closereason)  
      void onConnect()  
      void onError​(java.lang.Throwable cause)  
      void onFrame​(org.eclipse.jetty.websocket.api.extensions.Frame frame)  
      void onInputStream​(java.io.InputStream stream)  
      void onPing​(java.nio.ByteBuffer buffer)  
      void onPong​(java.nio.ByteBuffer buffer)  
      void onReader​(java.io.Reader reader)  
      void onTextFrame​(java.nio.ByteBuffer buffer, boolean fin)  
      void onTextMessage​(java.lang.String message)  
      void setPathParameters​(java.util.Map<java.lang.String,​java.lang.String> pathParameters)  
      java.lang.String toString()  
      • Methods inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver

        appendMessage, dispatch, getBatchMode, getPolicy, getSession, incomingFrame, onContinuationFrame
      • Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
      • Methods inherited from class java.lang.Object

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

      • JsrEndpointEventDriver

        public JsrEndpointEventDriver​(org.eclipse.jetty.websocket.api.WebSocketPolicy policy,
                                      EndpointInstance endpointInstance)
    • Method Detail

      • onBinaryFrame

        public void onBinaryFrame​(java.nio.ByteBuffer buffer,
                                  boolean fin)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • onBinaryMessage

        public void onBinaryMessage​(byte[] data)
      • onConnect

        public void onConnect()
      • onError

        public void onError​(java.lang.Throwable cause)
      • onFrame

        public void onFrame​(org.eclipse.jetty.websocket.api.extensions.Frame frame)
        Specified by:
        onFrame in interface org.eclipse.jetty.websocket.common.events.EventDriver
        Overrides:
        onFrame in class AbstractJsrEventDriver
      • onInputStream

        public void onInputStream​(java.io.InputStream stream)
      • onReader

        public void onReader​(java.io.Reader reader)
      • onTextFrame

        public void onTextFrame​(java.nio.ByteBuffer buffer,
                                boolean fin)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • onTextMessage

        public void onTextMessage​(java.lang.String message)
      • onPing

        public void onPing​(java.nio.ByteBuffer buffer)
        Specified by:
        onPing in interface org.eclipse.jetty.websocket.common.events.EventDriver
        Overrides:
        onPing in class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
      • onPong

        public void onPong​(java.nio.ByteBuffer buffer)
        Specified by:
        onPong in interface org.eclipse.jetty.websocket.common.events.EventDriver
        Overrides:
        onPong in class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.eclipse.jetty.util.component.AbstractLifeCycle