Class RestResponse

java.lang.Object
net.bluemind.core.rest.base.RestResponse

public class RestResponse extends Object
  • Field Details

    • data

      public io.vertx.core.buffer.Buffer data
    • responseStream

      public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> responseStream
    • headers

      public io.vertx.core.MultiMap headers
    • statusCode

      public final int statusCode
  • Constructor Details

    • RestResponse

      public RestResponse(int statusCode)
  • Method Details

    • fault

      public static RestResponse fault(Throwable e)
    • invalidSession

      public static RestResponse invalidSession(String key)
    • incompatibleClient

      public static RestResponse incompatibleClient(String message)
    • fault

      public static RestResponse fault(int statusCode, String statusMessage, io.vertx.core.buffer.Buffer buffer)
    • ok

      public static RestResponse ok(int statusCode, io.vertx.core.buffer.Buffer buffer)
    • ok

      public static RestResponse ok(String mimeType, int statusCode, io.vertx.core.buffer.Buffer buffer)
    • ok

      public static RestResponse ok(io.vertx.core.MultiMap headers, int statusCode, io.vertx.core.buffer.Buffer buffer)
    • stream

      public static RestResponse stream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream)
    • toString

      public String toString()
      Overrides:
      toString in class Object