Package io.micronaut.http.body
Class ByteBufferBodyAdapter
java.lang.Object
io.micronaut.http.body.ByteBufferBodyAdapter
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 4.8.0
- Author:
- Jonas Konrad
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableByteBody
adapt
(@NonNull Publisher<ByteBuffer> publisher, @NonNull OptionalLong contentLength) Deprecated, for removal: This API element is subject to removal in a future version.Create a new body from the given publisher.
-
Constructor Details
-
ByteBufferBodyAdapter
public ByteBufferBodyAdapter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
adapt
public static CloseableByteBody adapt(@NonNull @NonNull Publisher<ByteBuffer> publisher, @NonNull @NonNull OptionalLong contentLength) Deprecated, for removal: This API element is subject to removal in a future version.Create a new body from the given publisher.- Parameters:
publisher
- The input publishercontentLength
- Optional length of the body, must match the publisher exactly- Returns:
- The ByteBody fed by the publisher
-
ByteBodyFactory.adapt(io.micronaut.core.io.buffer.ByteBuffer<?>)