Package net.bluemind.core.rest.base
Class ResponseBuilder
java.lang.Object
net.bluemind.core.rest.base.ResponseBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract RestResponse
buildFailure
(RestRequest request, Throwable failure) static io.vertx.core.json.JsonObject
abstract RestResponse
buildSuccess
(RestRequest request, Object response) static ResponseBuilder
getResponseBuilder
(RestServiceApiDescriptor.MethodDescriptor methodDescriptor) static RestResponse
replyFault
(int statusCode, String statusMessage, io.vertx.core.json.JsonObject body) static RestResponse
replyFault
(int statusCode, String statusMessage, Throwable e) static RestResponse
-
Constructor Details
-
ResponseBuilder
public ResponseBuilder()
-
-
Method Details
-
buildSuccess
- Throws:
Exception
-
buildFailure
-
buildFault
-
replyFault
public static RestResponse replyFault(int statusCode, String statusMessage, io.vertx.core.json.JsonObject body) -
replyFault
-
replyServerFault
-
getResponseBuilder
public static ResponseBuilder getResponseBuilder(RestServiceApiDescriptor.MethodDescriptor methodDescriptor)
-