Class BodyHandler<W>
- java.lang.Object
-
- io.apicurio.registry.rest.client.request.BodyHandler<W>
-
- All Implemented Interfaces:
HttpResponse.BodyHandler<Supplier<W>>
public class BodyHandler<W> extends Object implements HttpResponse.BodyHandler<Supplier<W>>
- Author:
- Carles Arnal 'carnalca@redhat.com'
-
-
Constructor Summary
Constructors Constructor Description BodyHandler(com.fasterxml.jackson.core.type.TypeReference<W> wClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse.BodySubscriber<Supplier<W>>
apply(HttpResponse.ResponseInfo responseInfo)
static <W> HttpResponse.BodySubscriber<Supplier<W>>
asJSON(com.fasterxml.jackson.core.type.TypeReference<W> targetType, HttpResponse.ResponseInfo responseInfo)
static <W> Supplier<W>
toSupplierOfType(InputStream body, com.fasterxml.jackson.core.type.TypeReference<W> targetType, HttpResponse.ResponseInfo responseInfo)
-
-
-
Constructor Detail
-
BodyHandler
public BodyHandler(com.fasterxml.jackson.core.type.TypeReference<W> wClass)
-
-
Method Detail
-
apply
public HttpResponse.BodySubscriber<Supplier<W>> apply(HttpResponse.ResponseInfo responseInfo)
- Specified by:
apply
in interfaceHttpResponse.BodyHandler<W>
-
asJSON
public static <W> HttpResponse.BodySubscriber<Supplier<W>> asJSON(com.fasterxml.jackson.core.type.TypeReference<W> targetType, HttpResponse.ResponseInfo responseInfo)
-
toSupplierOfType
public static <W> Supplier<W> toSupplierOfType(InputStream body, com.fasterxml.jackson.core.type.TypeReference<W> targetType, HttpResponse.ResponseInfo responseInfo)
-
-