Class JettyWebSocketRemoteEndpoint

java.lang.Object
org.eclipse.jetty.websocket.common.JettyWebSocketRemoteEndpoint
All Implemented Interfaces:
org.eclipse.jetty.websocket.api.RemoteEndpoint

public class JettyWebSocketRemoteEndpoint extends Object implements org.eclipse.jetty.websocket.api.RemoteEndpoint
  • Constructor Details

    • JettyWebSocketRemoteEndpoint

      public JettyWebSocketRemoteEndpoint(org.eclipse.jetty.websocket.core.CoreSession coreSession, org.eclipse.jetty.websocket.api.BatchMode batchMode)
  • Method Details

    • sendString

      public void sendString(String text) throws IOException
      Specified by:
      sendString in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendString

      public void sendString(String text, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendString in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • sendBytes

      public void sendBytes(ByteBuffer data) throws IOException
      Specified by:
      sendBytes in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendBytes

      public void sendBytes(ByteBuffer data, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendBytes in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • sendPartialBytes

      public void sendPartialBytes(ByteBuffer fragment, boolean isLast) throws IOException
      Specified by:
      sendPartialBytes in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendPartialBytes

      public void sendPartialBytes(ByteBuffer fragment, boolean isLast, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendPartialBytes in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • sendPartialString

      public void sendPartialString(String fragment, boolean isLast) throws IOException
      Specified by:
      sendPartialString in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendPartialString

      public void sendPartialString(String fragment, boolean isLast, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendPartialString in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • sendPing

      public void sendPing(ByteBuffer applicationData) throws IOException
      Specified by:
      sendPing in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendPing

      public void sendPing(ByteBuffer applicationData, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendPing in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • sendPong

      public void sendPong(ByteBuffer applicationData) throws IOException
      Specified by:
      sendPong in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException
    • sendPong

      public void sendPong(ByteBuffer applicationData, org.eclipse.jetty.websocket.api.WriteCallback callback)
      Specified by:
      sendPong in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • getBatchMode

      public org.eclipse.jetty.websocket.api.BatchMode getBatchMode()
      Specified by:
      getBatchMode in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • setBatchMode

      public void setBatchMode(org.eclipse.jetty.websocket.api.BatchMode mode)
      Specified by:
      setBatchMode in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • getMaxOutgoingFrames

      public int getMaxOutgoingFrames()
      Specified by:
      getMaxOutgoingFrames in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • setMaxOutgoingFrames

      public void setMaxOutgoingFrames(int maxOutgoingFrames)
      Specified by:
      setMaxOutgoingFrames in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • getRemoteAddress

      public SocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface org.eclipse.jetty.websocket.api.RemoteEndpoint
      Throws:
      IOException