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