Class Grizzly2WebSocket

All Implemented Interfaces:
AsyncIOWriter, KeepOpenStreamAware

public class Grizzly2WebSocket extends WebSocket
  • Constructor Details

    • Grizzly2WebSocket

      public Grizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket, AtmosphereConfig config)
  • Method Details

    • isOpen

      public boolean isOpen()
      Description copied from class: WebSocket
      Is the underlying WebSocket open.
      Specified by:
      isOpen in class WebSocket
      Returns:
      true is opened
    • write

      public WebSocket write(String s) throws IOException
      Description copied from class: WebSocket
      Use the underlying container's websocket to write the String.
      Specified by:
      write in class WebSocket
      Parameters:
      s - a websocket String message
      Returns:
      this
      Throws:
      IOException
    • write

      public WebSocket write(byte[] data, int offset, int length) throws IOException
      Description copied from class: WebSocket
      Use the underlying container's websocket to write the byte.
      Specified by:
      write in class WebSocket
      Parameters:
      data - a websocket byte message
      offset - start
      length - end
      Returns:
      this
      Throws:
      IOException
    • close

      public void close()
      Description copied from class: WebSocket
      Close the underlying WebSocket
      Specified by:
      close in class WebSocket