Class JakartaWebSocketRemoteEndpoint

java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.JakartaWebSocketRemoteEndpoint
All Implemented Interfaces:
jakarta.websocket.RemoteEndpoint, org.eclipse.jetty.websocket.core.OutgoingFrames
Direct Known Subclasses:
JakartaWebSocketAsyncRemote, JakartaWebSocketBasicRemote

public class JakartaWebSocketRemoteEndpoint extends Object implements jakarta.websocket.RemoteEndpoint, org.eclipse.jetty.websocket.core.OutgoingFrames
  • Field Details

    • session

      protected final JakartaWebSocketSession session
    • batch

      protected boolean batch
    • messageType

      protected byte messageType
  • Constructor Details

    • JakartaWebSocketRemoteEndpoint

      protected JakartaWebSocketRemoteEndpoint(JakartaWebSocketSession session, org.eclipse.jetty.websocket.core.CoreSession coreSession)
  • Method Details

    • newMessageWriter

      protected org.eclipse.jetty.websocket.core.internal.messages.MessageWriter newMessageWriter()
    • newMessageOutputStream

      protected org.eclipse.jetty.websocket.core.internal.messages.MessageOutputStream newMessageOutputStream()
    • flushBatch

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

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

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

      public long getIdleTimeout()
    • setIdleTimeout

      public void setIdleTimeout(long ms)
    • getWriteTimeout

      public long getWriteTimeout()
    • setWriteTimeout

      public void setWriteTimeout(long ms)
    • sendFrame

      public void sendFrame(org.eclipse.jetty.websocket.core.Frame frame, org.eclipse.jetty.util.Callback callback, boolean batch)
      Specified by:
      sendFrame in interface org.eclipse.jetty.websocket.core.OutgoingFrames
    • sendObject

      public void sendObject(Object data, org.eclipse.jetty.util.Callback callback) throws IOException, jakarta.websocket.EncodeException
      Throws:
      IOException
      jakarta.websocket.EncodeException
    • sendPing

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

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

      protected void assertMessageNotNull(Object data)
    • assertSendHandlerNotNull

      protected void assertSendHandlerNotNull(jakarta.websocket.SendHandler handler)