public abstract class ResponseBuilder
extends java.lang.Object
Constructor and Description |
---|
ResponseBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract RestResponse |
buildFailure(RestRequest request,
java.lang.Throwable failure) |
static org.vertx.java.core.json.JsonObject |
buildFault(java.lang.Throwable e) |
abstract RestResponse |
buildSuccess(RestRequest request,
java.lang.Object response) |
static ResponseBuilder |
getResponseBuilder(RestServiceApiDescriptor.MethodDescriptor methodDescriptor) |
static RestResponse |
replyFault(int statusCode,
java.lang.String statusMessage,
org.vertx.java.core.json.JsonObject body) |
static RestResponse |
replyFault(int statusCode,
java.lang.String statusMessage,
java.lang.Throwable e) |
static RestResponse |
replyServerFault(ServerFault e) |
public abstract RestResponse buildSuccess(RestRequest request, java.lang.Object response) throws java.lang.Exception
java.lang.Exception
public abstract RestResponse buildFailure(RestRequest request, java.lang.Throwable failure)
public static org.vertx.java.core.json.JsonObject buildFault(java.lang.Throwable e)
public static RestResponse replyFault(int statusCode, java.lang.String statusMessage, org.vertx.java.core.json.JsonObject body)
public static RestResponse replyFault(int statusCode, java.lang.String statusMessage, java.lang.Throwable e)
public static RestResponse replyServerFault(ServerFault e)
public static ResponseBuilder getResponseBuilder(RestServiceApiDescriptor.MethodDescriptor methodDescriptor)
Copyright © 2021. All Rights Reserved.