public class OperationResponse extends Object
Constructor and Description |
---|
OperationResponse() |
OperationResponse(Integer statusCode,
String statusMessage,
Buffer payload,
MultiMap headers) |
OperationResponse(JsonObject json) |
OperationResponse(OperationResponse other) |
Modifier and Type | Method and Description |
---|---|
static OperationResponse |
completedWithJson(Buffer json) |
static OperationResponse |
completedWithJson(JsonArray jsonArray) |
static OperationResponse |
completedWithJson(JsonObject jsonObject) |
static OperationResponse |
completedWithPlainText(Buffer text) |
MultiMap |
getHeaders() |
Buffer |
getPayload() |
Integer |
getStatusCode() |
String |
getStatusMessage() |
OperationResponse |
putHeader(String key,
String value) |
OperationResponse |
setHeaders(MultiMap headers) |
OperationResponse |
setPayload(Buffer payload) |
OperationResponse |
setStatusCode(Integer statusCode) |
OperationResponse |
setStatusMessage(String statusMessage) |
JsonObject |
toJson() |
public OperationResponse()
public OperationResponse(JsonObject json)
public OperationResponse(Integer statusCode, String statusMessage, Buffer payload, MultiMap headers)
public OperationResponse(OperationResponse other)
public JsonObject toJson()
public Integer getStatusCode()
public String getStatusMessage()
public Buffer getPayload()
public MultiMap getHeaders()
public OperationResponse setHeaders(MultiMap headers)
public OperationResponse setStatusCode(Integer statusCode)
public OperationResponse setStatusMessage(String statusMessage)
public OperationResponse setPayload(Buffer payload)
public OperationResponse putHeader(String key, String value)
public static OperationResponse completedWithJson(JsonObject jsonObject)
public static OperationResponse completedWithJson(JsonArray jsonArray)
public static OperationResponse completedWithJson(Buffer json)
public static OperationResponse completedWithPlainText(Buffer text)
Copyright © 2023 Eclipse. All rights reserved.