Class VertxRestResponse

java.lang.Object
io.vertx.core.json.JsonObject
net.bluemind.core.rest.vertx.VertxRestResponse
All Implemented Interfaces:
io.vertx.core.shareddata.ClusterSerializable, io.vertx.core.shareddata.impl.ClusterSerializable, io.vertx.core.shareddata.Shareable, Iterable<Map.Entry<String,Object>>

public class VertxRestResponse extends io.vertx.core.json.JsonObject
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final io.vertx.core.MultiMap
     
    final io.vertx.core.buffer.Buffer
     
    final String
     
    final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VertxRestResponse(io.vertx.core.MultiMap headers, int statusCode, io.vertx.core.buffer.Buffer responseData, String responseStreamAdr)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.vertx.core.json.JsonObject
     
    create(RestResponse response)
     
     
     

    Methods inherited from class io.vertx.core.json.JsonObject

    clear, containsKey, copy, encodePrettily, equals, fieldNames, getBinary, getBinary, getBoolean, getBoolean, getBuffer, getBuffer, getDouble, getDouble, getFloat, getFloat, getInstant, getInstant, getInteger, getInteger, getJsonArray, getJsonArray, getJsonObject, getJsonObject, getLong, getLong, getMap, getNumber, getNumber, getString, getString, getValue, getValue, hashCode, isEmpty, iterator, mapFrom, mapTo, mergeIn, mergeIn, mergeIn, of, of, of, of, of, of, of, of, of, of, of, put, putNull, readFromBuffer, remove, size, stream, toBuffer, writeToBuffer

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • responseData

      public final io.vertx.core.buffer.Buffer responseData
    • responseStreamAdr

      public final String responseStreamAdr
    • headers

      public final io.vertx.core.MultiMap headers
    • statusCode

      public final int statusCode
  • Constructor Details

    • VertxRestResponse

      public VertxRestResponse(io.vertx.core.MultiMap headers, int statusCode, io.vertx.core.buffer.Buffer responseData, String responseStreamAdr)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class io.vertx.core.json.JsonObject
    • encode

      public String encode()
      Overrides:
      encode in class io.vertx.core.json.JsonObject
    • copy

      public io.vertx.core.json.JsonObject copy()
      Specified by:
      copy in interface io.vertx.core.shareddata.Shareable
      Overrides:
      copy in class io.vertx.core.json.JsonObject
    • create

      public static VertxRestResponse create(RestResponse response)
    • asResponse

      public RestResponse asResponse()