Class WebsocketRequest

All Implemented Interfaces:
Messageable, Request

public class WebsocketRequest extends Object implements Request
Websocket request object.
  • Method Details

    • connection

      public Connection connection()
      Specified by:
      connection in interface Request
      the underlying connection of the request, may be called multiple times per request returning the same connection object.
    • write

      public void write(Object object)
      Description copied from interface: Messageable
      Writes an object to the connection that backs the current request.
      Specified by:
      write in interface Messageable
      object - the object to be written.
    • data

      public io.vertx.core.json.JsonObject data()
      Description copied from interface: Request
      Get the raw data of the request as a json object
      Specified by:
      data in interface Request
      the raw data of the request
    • timeout

      public int timeout()
      Description copied from interface: Request
      Get the request timeout which indicates how long the sender is waiting until the request is considered to have timed out.

      defaults to #ListenerSettings.DEFAULT_TIMEOUT

      Specified by:
      timeout in interface Request
      milliseconds specifying the timeout of the request
    • size

      public int size()
      Specified by:
      size in interface Request
      the size of the request in bytes.
    • maxSize

      public int maxSize()
      Description copied from interface: Request
      Specified by:
      maxSize in interface Request
      the maximum number of bytes allowed in a single request.