Package io.airlift.http.client
Class JsonResponseHandler<T>
java.lang.Object
io.airlift.http.client.JsonResponseHandler<T>
- All Implemented Interfaces:
ResponseHandler<T,RuntimeException>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JsonResponseHandler<T>createJsonResponseHandler(JsonCodec<T> jsonCodec) static <T> JsonResponseHandler<T>createJsonResponseHandler(JsonCodec<T> jsonCodec, int firstSuccessfulResponseCode, int... otherSuccessfulResponseCodes) handleException(Request request, Exception exception)
-
Method Details
-
createJsonResponseHandler
-
createJsonResponseHandler
public static <T> JsonResponseHandler<T> createJsonResponseHandler(JsonCodec<T> jsonCodec, int firstSuccessfulResponseCode, int... otherSuccessfulResponseCodes) -
handleException
- Specified by:
handleExceptionin interfaceResponseHandler<T,RuntimeException>
-
handle
- Specified by:
handlein interfaceResponseHandler<T,RuntimeException>
-