public class AdaptingJsonResponseHandler<T> extends Object implements com.facebook.airlift.http.client.ResponseHandler<BaseResponse<T>,RuntimeException>
Modifier and Type | Method and Description |
---|---|
static <T> AdaptingJsonResponseHandler<T> |
createAdaptingJsonResponseHandler(com.facebook.airlift.json.JsonCodec<T> jsonCodec) |
BaseResponse<T> |
handle(com.facebook.airlift.http.client.Request request,
com.facebook.airlift.http.client.Response response) |
BaseResponse<T> |
handleException(com.facebook.airlift.http.client.Request request,
Exception exception) |
public static <T> AdaptingJsonResponseHandler<T> createAdaptingJsonResponseHandler(com.facebook.airlift.json.JsonCodec<T> jsonCodec)
public BaseResponse<T> handleException(com.facebook.airlift.http.client.Request request, Exception exception) throws RuntimeException
handleException
in interface com.facebook.airlift.http.client.ResponseHandler<BaseResponse<T>,RuntimeException>
RuntimeException
public BaseResponse<T> handle(com.facebook.airlift.http.client.Request request, com.facebook.airlift.http.client.Response response) throws RuntimeException
handle
in interface com.facebook.airlift.http.client.ResponseHandler<BaseResponse<T>,RuntimeException>
RuntimeException
Copyright © 2012–2022. All rights reserved.