public final class ByteBuffersAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody for providing data from the supplied ByteBuffer array. This is created
using static methods on AsyncRequestBodyAsyncRequestBody.fromBytes(byte[]),
AsyncRequestBody.fromBytesUnsafe(byte[]),
AsyncRequestBody.fromByteBuffer(ByteBuffer),
AsyncRequestBody.fromByteBufferUnsafe(ByteBuffer),
AsyncRequestBody.fromByteBuffers(ByteBuffer...),
AsyncRequestBody.fromByteBuffersUnsafe(ByteBuffer...),
AsyncRequestBody.fromString(String)| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
contentLength() |
String |
contentType() |
static ByteBuffersAsyncRequestBody |
from(byte[] bytes) |
static ByteBuffersAsyncRequestBody |
from(String mimetype,
byte[] bytes) |
static ByteBuffersAsyncRequestBody |
of(ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(Long length,
ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(String mimetype,
ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(String mimetype,
Long length,
ByteBuffer... buffers) |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromByteBuffers, fromByteBuffersUnsafe, fromByteBufferUnsafe, fromBytes, fromBytesUnsafe, fromFile, fromFile, fromFile, fromFile, fromInputStream, fromPublisher, fromRemainingByteBuffer, fromRemainingByteBuffers, fromRemainingByteBuffersUnsafe, fromRemainingByteBufferUnsafe, fromString, fromString, split, splitadapt, addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribepublic Optional<Long> contentLength()
contentLength in interface AsyncRequestBodypublic String contentType()
contentType in interface AsyncRequestBodypublic void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe in interface org.reactivestreams.Publisher<ByteBuffer>public static ByteBuffersAsyncRequestBody of(ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(Long length, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(String mimetype, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(String mimetype, Long length, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody from(byte[] bytes)
public static ByteBuffersAsyncRequestBody from(String mimetype, byte[] bytes)
Copyright © 2023. All rights reserved.