Package io.airlift.http.client
Class FullJsonResponseHandler.JsonResponse<T>
java.lang.Object
io.airlift.http.client.FullJsonResponseHandler.JsonResponse<T>
- Enclosing class:
FullJsonResponseHandler<T>
-
Constructor Summary
ConstructorsConstructorDescriptionJsonResponse(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
Modifier and TypeMethodDescriptioncom.google.common.collect.ListMultimap<HeaderName, String> getHeaders(String name) getJson()byte[]byte[]intintgetValue()booleanhasValue()toString()
-
Constructor Details
-
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 Details
-
getStatusCode
public int getStatusCode() -
getHeader
-
getHeaders
-
getHeaders
-
hasValue
public boolean hasValue() -
getValue
-
getResponseSize
public int getResponseSize() -
getResponseBytes
public byte[] getResponseBytes() -
getResponseBody
-
getJsonBytes
public byte[] getJsonBytes() -
getJson
-
getException
-
toString
-