public class JsonResponseHandler<T> extends Object implements ResponseHandler<T,RuntimeException>
Modifier and Type | Method and Description |
---|---|
static <T> JsonResponseHandler<T> |
createJsonResponseHandler(JsonCodec<T> jsonCodec) |
static <T> JsonResponseHandler<T> |
createJsonResponseHandler(JsonCodec<T> jsonCodec,
int firstSuccessfulResponseCode,
int... otherSuccessfulResponseCodes) |
T |
handle(Request request,
Response response) |
T |
handleException(Request request,
Exception exception) |
public static <T> JsonResponseHandler<T> createJsonResponseHandler(JsonCodec<T> jsonCodec)
public static <T> JsonResponseHandler<T> createJsonResponseHandler(JsonCodec<T> jsonCodec, int firstSuccessfulResponseCode, int... otherSuccessfulResponseCodes)
public T handleException(Request request, Exception exception)
handleException
in interface ResponseHandler<T,RuntimeException>
public T handle(Request request, Response response)
handle
in interface ResponseHandler<T,RuntimeException>
Copyright © 2010-2017 Airlift. All Rights Reserved.