Class JettyAnnotatedEventDriver

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.websocket.common.events.AbstractEventDriver
org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver
All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle, IncomingFrames, EventDriver

public class JettyAnnotatedEventDriver extends AbstractEventDriver
Handler for Annotated User WebSocket objects.
  • Field Details

    • LOG

      private static final org.eclipse.jetty.util.log.Logger LOG
    • events

      private final JettyAnnotatedMetadata events
    • hasCloseBeenCalled

      private boolean hasCloseBeenCalled
    • batchMode

      private final BatchMode batchMode
  • Constructor Details

  • Method Details

    • getBatchMode

      public BatchMode getBatchMode()
      Specified by:
      getBatchMode in interface EventDriver
      Overrides:
      getBatchMode in class AbstractEventDriver
    • onBinaryFrame

      public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
      Throws:
      IOException
    • onBinaryMessage

      public void onBinaryMessage(byte[] data)
    • onClose

      public void onClose(CloseInfo close)
    • onConnect

      public void onConnect()
    • onError

      public void onError(Throwable cause)
    • onFrame

      public void onFrame(Frame frame)
    • onInputStream

      public void onInputStream(InputStream stream)
    • onReader

      public void onReader(Reader reader)
    • onTextFrame

      public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
      Throws:
      IOException
    • onTextMessage

      public void onTextMessage(String message)
    • toString

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