public static class Serialisation.HttpBodyHandler<T> extends java.lang.Object implements HttpCore.BodyHandler<T>
| Constructor and Description |
|---|
HttpBodyHandler()
If the target type extends JsonElement, we don't need to convert JsonElements to
it.
|
HttpBodyHandler(java.lang.Class<T[]> klass,
Serialisation.FromJsonElement<T> converter) |
| Modifier and Type | Method and Description |
|---|---|
T[] |
handleResponseBody(java.lang.String contentType,
byte[] body) |
public HttpBodyHandler(java.lang.Class<T[]> klass, Serialisation.FromJsonElement<T> converter)
public HttpBodyHandler()
public T[] handleResponseBody(java.lang.String contentType, byte[] body) throws AblyException
handleResponseBody in interface HttpCore.BodyHandler<T>AblyException