public class Response extends Object
| Constructor and Description |
|---|
Response() |
| Modifier and Type | Method and Description |
|---|---|
Response |
addHeader(String name,
String value) |
Response |
build() |
static Response |
consumerFailResp(Throwable e) |
static Response |
create(int statusCode,
String reasonPhrase,
Object result) |
static Response |
create(javax.ws.rs.core.Response.StatusType status,
Object result) |
static Response |
createConsumerFail(Throwable throwable) |
static Response |
createConsumerFail(Throwable throwable,
String message) |
static Response |
createFail(InvocationException exception) |
static Response |
createFail(InvocationType invocationType,
String errorMsg) |
static Response |
createFail(InvocationType invocationType,
Throwable throwable) |
static Response |
createProducerFail(Throwable throwable) |
static Response |
createSuccess(Object result) |
static Response |
createSuccess(javax.ws.rs.core.Response.StatusType status,
Object result) |
Response |
entity(Object result) |
static Response |
failResp(InvocationException e) |
static Response |
failResp(InvocationType invocationType,
Throwable e) |
String |
getHeader(String name) |
io.vertx.core.MultiMap |
getHeaders() |
List<String> |
getHeaders(String name) |
String |
getReasonPhrase() |
<T> T |
getResult() |
javax.ws.rs.core.Response.StatusType |
getStatus() |
int |
getStatusCode() |
boolean |
isFailed() |
boolean |
isSucceed() |
boolean |
isSuccessed()
Deprecated.
|
static Response |
ok(Object result) |
static Response |
producerFailResp(Throwable e) |
static Response |
providerFailResp(Throwable e) |
Response |
setHeader(String name,
String value) |
Response |
setHeaders(io.vertx.core.MultiMap headers) |
void |
setResult(Object result) |
void |
setStatus(javax.ws.rs.core.Response.StatusType status) |
static Response |
status(javax.ws.rs.core.Response.StatusType status) |
static Response |
success(Object result,
javax.ws.rs.core.Response.StatusType status) |
static Response |
succResp(Object result) |
public boolean isSucceed()
@Deprecated public boolean isSuccessed()
public boolean isFailed()
public int getStatusCode()
public String getReasonPhrase()
public javax.ws.rs.core.Response.StatusType getStatus()
public void setStatus(javax.ws.rs.core.Response.StatusType status)
public io.vertx.core.MultiMap getHeaders()
public Response setHeaders(io.vertx.core.MultiMap headers)
public <T> T getResult()
public void setResult(Object result)
public static Response createSuccess(javax.ws.rs.core.Response.StatusType status, Object result)
public static Response createFail(InvocationException exception)
public static Response createFail(InvocationType invocationType, String errorMsg)
public static Response createFail(InvocationType invocationType, Throwable throwable)
public static Response failResp(InvocationException e)
public static Response failResp(InvocationType invocationType, Throwable e)
public Response build()
public static Response status(javax.ws.rs.core.Response.StatusType status)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.