public class ByteArrayBodyHandler extends Object implements AsyncBody.Consumer<List<ByteBuffer>>
| Constructor and Description |
|---|
ByteArrayBodyHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
consume(List<ByteBuffer> value,
AsyncBody asyncBody) |
CompletableFuture<byte[]> |
getResult() |
protected void |
onResponse(HttpResponse<AsyncBody> response) |
public void consume(List<ByteBuffer> value, AsyncBody asyncBody) throws Exception
consume in interface AsyncBody.Consumer<List<ByteBuffer>>Exceptionprotected void onResponse(HttpResponse<AsyncBody> response)
public CompletableFuture<byte[]> getResult()
Copyright © 2015–2022 Red Hat. All rights reserved.