Package org.kairosdb.client.response
Class DefaultJsonResponseHandler<T>
- java.lang.Object
-
- org.kairosdb.client.response.DefaultJsonResponseHandler<T>
-
- All Implemented Interfaces:
JsonResponseHandler
public class DefaultJsonResponseHandler<T> extends Object implements JsonResponseHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonResponseHandler(Class<T> clazz)DefaultJsonResponseHandler(Class<T> clazz, DataPointTypeRegistry typeRegistry)DefaultJsonResponseHandler(Type type)DefaultJsonResponseHandler(Type type, DataPointTypeRegistry typeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Thandle(org.apache.http.client.methods.HttpUriRequest request, ResponseHelper response)ObjecthandleException(org.apache.http.client.methods.HttpUriRequest request, Exception exception)
-
-
-
Constructor Detail
-
DefaultJsonResponseHandler
public DefaultJsonResponseHandler(Type type)
-
DefaultJsonResponseHandler
public DefaultJsonResponseHandler(Class<T> clazz, DataPointTypeRegistry typeRegistry)
-
DefaultJsonResponseHandler
public DefaultJsonResponseHandler(Type type, DataPointTypeRegistry typeRegistry)
-
-
Method Detail
-
handleException
public Object handleException(org.apache.http.client.methods.HttpUriRequest request, Exception exception) throws RuntimeException
- Specified by:
handleExceptionin interfaceJsonResponseHandler<T>- Throws:
RuntimeException
-
handle
public T handle(org.apache.http.client.methods.HttpUriRequest request, ResponseHelper response) throws RuntimeException
- Specified by:
handlein interfaceJsonResponseHandler<T>- Throws:
RuntimeException
-
-