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
Modifier and Type Method Description ThandleResponse(HttpCore.Response response, ErrorInfo error)
-
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:
handleResponsein interfaceHttpCore.ResponseHandler<T>- Throws:
AblyException
-