Class ByteBufferBodyAdapter

java.lang.Object
io.micronaut.http.body.ByteBufferBodyAdapter

@Deprecated(forRemoval=true) public final class ByteBufferBodyAdapter extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Since:
4.8.0
Author:
Jonas Konrad
  • 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 publisher
      contentLength - Optional length of the body, must match the publisher exactly
      Returns:
      The ByteBody fed by the publisher