public static class FullJsonResponseHandler.JsonResponse<T> extends Object
| Constructor and Description |
|---|
JsonResponse(int statusCode,
com.google.common.collect.ListMultimap<HeaderName,String> headers,
byte[] responseBytes) |
JsonResponse(int statusCode,
com.google.common.collect.ListMultimap<HeaderName,String> headers,
JsonCodec<T> jsonCodec,
byte[] jsonBytes) |
| Modifier and Type | Method and Description |
|---|---|
IllegalArgumentException |
getException() |
String |
getHeader(String name) |
com.google.common.collect.ListMultimap<HeaderName,String> |
getHeaders() |
List<String> |
getHeaders(String name) |
String |
getJson() |
byte[] |
getJsonBytes() |
String |
getResponseBody() |
byte[] |
getResponseBytes() |
int |
getResponseSize() |
int |
getStatusCode() |
T |
getValue() |
boolean |
hasValue() |
String |
toString() |
public JsonResponse(int statusCode,
com.google.common.collect.ListMultimap<HeaderName,String> headers,
byte[] responseBytes)
public JsonResponse(int statusCode,
com.google.common.collect.ListMultimap<HeaderName,String> headers,
JsonCodec<T> jsonCodec,
byte[] jsonBytes)
public int getStatusCode()
public com.google.common.collect.ListMultimap<HeaderName,String> getHeaders()
public boolean hasValue()
public T getValue()
public int getResponseSize()
public byte[] getResponseBytes()
public String getResponseBody()
public byte[] getJsonBytes()
public String getJson()
public IllegalArgumentException getException()
Copyright © 2010–2020 Airlift. All rights reserved.