Package net.bluemind.core.rest.base
Class RestResponse
java.lang.Object
net.bluemind.core.rest.base.RestResponse
-
Field Summary
Modifier and TypeFieldDescriptionio.vertx.core.buffer.Buffer
io.vertx.core.MultiMap
io.vertx.core.streams.ReadStream
<io.vertx.core.buffer.Buffer> final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RestResponse
static RestResponse
static RestResponse
incompatibleClient
(String message) static RestResponse
invalidSession
(String key) static RestResponse
ok
(int statusCode, io.vertx.core.buffer.Buffer buffer) static RestResponse
ok
(io.vertx.core.MultiMap headers, int statusCode, io.vertx.core.buffer.Buffer buffer) static RestResponse
static RestResponse
stream
(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream) toString()
-
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
-
invalidSession
-
incompatibleClient
-
fault
public static RestResponse fault(int statusCode, String statusMessage, io.vertx.core.buffer.Buffer buffer) -
ok
-
ok
-
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
-