public class RestResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
io.vertx.core.buffer.Buffer |
data |
io.vertx.core.MultiMap |
headers |
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> |
responseStream |
int |
statusCode |
Constructor and Description |
---|
RestResponse(int statusCode) |
Modifier and Type | Method and Description |
---|---|
static RestResponse |
fault(int statusCode,
java.lang.String statusMessage,
io.vertx.core.buffer.Buffer buffer) |
static RestResponse |
fault(java.lang.Throwable e) |
static RestResponse |
incompatibleClient(java.lang.String message) |
static RestResponse |
invalidSession(java.lang.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 |
ok(java.lang.String mimeType,
int statusCode,
io.vertx.core.buffer.Buffer buffer) |
static RestResponse |
stream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream) |
java.lang.String |
toString() |
public io.vertx.core.buffer.Buffer data
public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> responseStream
public io.vertx.core.MultiMap headers
public final int statusCode
public static RestResponse fault(java.lang.Throwable e)
public static RestResponse invalidSession(java.lang.String key)
public static RestResponse incompatibleClient(java.lang.String message)
public static RestResponse fault(int statusCode, java.lang.String statusMessage, io.vertx.core.buffer.Buffer buffer)
public static RestResponse ok(int statusCode, io.vertx.core.buffer.Buffer buffer)
public static RestResponse ok(java.lang.String mimeType, int statusCode, io.vertx.core.buffer.Buffer buffer)
public static RestResponse ok(io.vertx.core.MultiMap headers, int statusCode, io.vertx.core.buffer.Buffer buffer)
public static RestResponse stream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021. All Rights Reserved.