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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
unwrap
public void consume(List<ByteBuffer> value, AsyncBody asyncBody) throws Exception
consume
in interface AsyncBody.Consumer<List<ByteBuffer>>
Exception
protected void onResponse(HttpResponse<AsyncBody> response)
public CompletableFuture<byte[]> getResult()
Copyright © 2015–2023 Red Hat. All rights reserved.