Package io.ably.lib.util
Class Serialisation.HttpBodyHandler<T>
java.lang.Object
io.ably.lib.util.Serialisation.HttpBodyHandler<T>
- All Implemented Interfaces:
HttpCore.BodyHandler<T>
- Enclosing class:
- Serialisation
public static class Serialisation.HttpBodyHandler<T>
extends Object
implements HttpCore.BodyHandler<T>
-
Constructor Summary
ConstructorDescriptionIf the target type extends JsonElement, we don't need to convert JsonElements to it.HttpBodyHandler
(Class<T[]> klass, Serialisation.FromJsonElement<T> converter) -
Method Summary
-
Constructor Details
-
HttpBodyHandler
-
HttpBodyHandler
public HttpBodyHandler()If the target type extends JsonElement, we don't need to convert JsonElements to it. We can just force-cast.
-
-
Method Details
-
handleResponseBody
- Specified by:
-
handleResponseBody
in interfaceHttpCore.BodyHandler<T>
- Throws:
AblyException
-