Package io.ably.lib.util
Class Serialisation.HttpResponseHandler<T>
- java.lang.Object
-
- io.ably.lib.util.Serialisation.HttpResponseHandler<T>
-
- All Implemented Interfaces:
HttpCore.ResponseHandler<T>
- Enclosing class:
- Serialisation
public static class Serialisation.HttpResponseHandler<T> extends java.lang.Object implements HttpCore.ResponseHandler<T>
-
-
Constructor Summary
Constructors Constructor Description HttpResponseHandler()If the target type extends JsonElement, we don't need to convert JsonElements to it.HttpResponseHandler(java.lang.Class<T> klass, Serialisation.FromJsonElement<T> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThandleResponse(HttpCore.Response response, ErrorInfo error)
-
-
-
Constructor Detail
-
HttpResponseHandler
public HttpResponseHandler(java.lang.Class<T> klass, Serialisation.FromJsonElement<T> converter)
-
HttpResponseHandler
public HttpResponseHandler()
If the target type extends JsonElement, we don't need to convert JsonElements to it. We can just force-cast.
-
-
Method Detail
-
handleResponse
public T handleResponse(HttpCore.Response response, ErrorInfo error) throws AblyException
- Specified by:
handleResponsein interfaceHttpCore.ResponseHandler<T>- Throws:
AblyException
-
-