io.airlift.http.client
Class FullJsonResponseHandler<T>

java.lang.Object
  extended by io.airlift.http.client.FullJsonResponseHandler<T>
All Implemented Interfaces:
ResponseHandler<FullJsonResponseHandler.JsonResponse<T>,RuntimeException>

public class FullJsonResponseHandler<T>
extends Object
implements ResponseHandler<FullJsonResponseHandler.JsonResponse<T>,RuntimeException>


Nested Class Summary
static class FullJsonResponseHandler.JsonResponse<T>
           
 
Method Summary
static
<T> FullJsonResponseHandler<T>
createFullJsonResponseHandler(JsonCodec<T> jsonCodec)
           
 FullJsonResponseHandler.JsonResponse<T> handle(Request request, Response response)
           
 RuntimeException handleException(Request request, Exception exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFullJsonResponseHandler

public static <T> FullJsonResponseHandler<T> createFullJsonResponseHandler(JsonCodec<T> jsonCodec)

handleException

public RuntimeException handleException(Request request,
                                        Exception exception)
Specified by:
handleException in interface ResponseHandler<FullJsonResponseHandler.JsonResponse<T>,RuntimeException>

handle

public FullJsonResponseHandler.JsonResponse<T> handle(Request request,
                                                      Response response)
Specified by:
handle in interface ResponseHandler<FullJsonResponseHandler.JsonResponse<T>,RuntimeException>


Copyright © 2010-2012 Airlift. All Rights Reserved.