Package io.airlift.http.client
Class FullJsonResponseHandler.JsonResponse<T>
- java.lang.Object
-
- io.airlift.http.client.FullJsonResponseHandler.JsonResponse<T>
-
- Enclosing class:
- FullJsonResponseHandler<T>
public static class FullJsonResponseHandler.JsonResponse<T> extends Object
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IllegalArgumentExceptiongetException()StringgetHeader(String name)com.google.common.collect.ListMultimap<HeaderName,String>getHeaders()List<String>getHeaders(String name)StringgetJson()byte[]getJsonBytes()StringgetResponseBody()byte[]getResponseBytes()intgetResponseSize()intgetStatusCode()TgetValue()booleanhasValue()StringtoString()
-
-
-
Constructor Detail
-
JsonResponse
public JsonResponse(int statusCode, com.google.common.collect.ListMultimap<HeaderName,String> headers, byte[] responseBytes)
-
JsonResponse
public JsonResponse(int statusCode, com.google.common.collect.ListMultimap<HeaderName,String> headers, JsonCodec<T> jsonCodec, byte[] jsonBytes)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getHeaders
public com.google.common.collect.ListMultimap<HeaderName,String> getHeaders()
-
hasValue
public boolean hasValue()
-
getValue
public T getValue()
-
getResponseSize
public int getResponseSize()
-
getResponseBytes
public byte[] getResponseBytes()
-
getResponseBody
public String getResponseBody()
-
getJsonBytes
public byte[] getJsonBytes()
-
getJson
public String getJson()
-
getException
public IllegalArgumentException getException()
-
-