Class AbstractJsrRemote

java.lang.Object
org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
All Implemented Interfaces:
javax.websocket.RemoteEndpoint
Direct Known Subclasses:
JsrAsyncRemote, JsrBasicRemote

public abstract class AbstractJsrRemote extends Object implements javax.websocket.RemoteEndpoint
  • Field Details

  • Constructor Details

    • AbstractJsrRemote

      protected AbstractJsrRemote(JsrSession session)
  • Method Details

    • assertMessageNotNull

      protected void assertMessageNotNull(Object data)
    • assertSendHandlerNotNull

      protected void assertSendHandlerNotNull(javax.websocket.SendHandler handler)
    • flushBatch

      public void flushBatch() throws IOException
      Specified by:
      flushBatch in interface javax.websocket.RemoteEndpoint
      Throws:
      IOException
    • getBatchingAllowed

      public boolean getBatchingAllowed()
      Specified by:
      getBatchingAllowed in interface javax.websocket.RemoteEndpoint
    • setBatchingAllowed

      public void setBatchingAllowed(boolean allowed) throws IOException
      Specified by:
      setBatchingAllowed in interface javax.websocket.RemoteEndpoint
      Throws:
      IOException
    • sendObjectViaFuture

      public Future<Void> sendObjectViaFuture(Object data)
    • sendPing

      public void sendPing(ByteBuffer data) throws IOException, IllegalArgumentException
      Specified by:
      sendPing in interface javax.websocket.RemoteEndpoint
      Throws:
      IOException
      IllegalArgumentException
    • sendPong

      public void sendPong(ByteBuffer data) throws IOException, IllegalArgumentException
      Specified by:
      sendPong in interface javax.websocket.RemoteEndpoint
      Throws:
      IOException
      IllegalArgumentException