Class NettyByteBody

java.lang.Object
io.micronaut.http.netty.body.NettyByteBody
All Implemented Interfaces:
io.micronaut.http.body.ByteBody, io.micronaut.http.body.InternalByteBody
Direct Known Subclasses:
AvailableNettyByteBody, StreamingNettyByteBody

@Internal public abstract sealed class NettyByteBody extends Object implements io.micronaut.http.body.ByteBody, io.micronaut.http.body.InternalByteBody permits AvailableNettyByteBody, StreamingNettyByteBody
Common base class for streaming and immediate netty ByteBody implementations.
Since:
4.5.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.http.body.ByteBody

    io.micronaut.http.body.ByteBody.BodyDiscardedException, io.micronaut.http.body.ByteBody.SplitBackpressureMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract @NonNull io.micronaut.core.execution.ExecutionFlow<? extends io.micronaut.http.body.CloseableAvailableByteBody>
     
    @NonNull org.reactivestreams.Publisher<byte[]>
     
    @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>>
     
    static reactor.core.publisher.Flux<io.netty.buffer.ByteBuf>
    toByteBufs(io.micronaut.http.body.ByteBody body)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.http.body.ByteBody

    allowDiscard, expectedLength, split, split, toInputStream

    Methods inherited from interface io.micronaut.http.body.InternalByteBody

    buffer
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
  • Constructor Details

    • NettyByteBody

      public NettyByteBody()
  • Method Details

    • toByteBufs

      public static reactor.core.publisher.Flux<io.netty.buffer.ByteBuf> toByteBufs(io.micronaut.http.body.ByteBody body)
    • toByteArrayPublisher

      @NonNull public @NonNull org.reactivestreams.Publisher<byte[]> toByteArrayPublisher()
      Specified by:
      toByteArrayPublisher in interface io.micronaut.http.body.ByteBody
    • toByteBufferPublisher

      @NonNull public @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>> toByteBufferPublisher()
      Specified by:
      toByteBufferPublisher in interface io.micronaut.http.body.ByteBody
    • bufferFlow

      @NonNull public abstract @NonNull io.micronaut.core.execution.ExecutionFlow<? extends io.micronaut.http.body.CloseableAvailableByteBody> bufferFlow()
      Specified by:
      bufferFlow in interface io.micronaut.http.body.InternalByteBody