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 Object
implements HttpCore.ResponseHandler<T>
-
Constructor Summary
ConstructorDescriptionIf the target type extends JsonElement, we don't need to convert JsonElements to it.HttpResponseHandler
(Class<T> klass, Serialisation.FromJsonElement<T> converter) -
Method Summary
-
Constructor Details
-
HttpResponseHandler
-
HttpResponseHandler
public HttpResponseHandler()If the target type extends JsonElement, we don't need to convert JsonElements to it. We can just force-cast.
-
-
Method Details
-
handleResponse
- Specified by:
-
handleResponse
in interfaceHttpCore.ResponseHandler<T>
- Throws:
AblyException
-