Class PipeliningServerHandler.OutboundAccessImpl

java.lang.Object
io.micronaut.http.server.netty.handler.PipeliningServerHandler.OutboundAccessImpl
All Implemented Interfaces:
io.micronaut.http.netty.body.NettyWriteContext, OutboundAccess
Enclosing class:
PipeliningServerHandler

public final class PipeliningServerHandler.OutboundAccessImpl extends Object implements OutboundAccess
Class that allows writing the response for the request this object is associated with.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.buffer.ByteBufAllocator
     
    void
    attachment(Object attachment)
    Set an attachment that is passed to RequestHandler.responseWritten(java.lang.Object).
    void
    Mark this channel to be closed after this response has been written.
    void
    write(@NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull io.micronaut.http.body.ByteBody body)
     
    void
    writeFull(io.netty.handler.codec.http.FullHttpResponse response, boolean headResponse)
     
    void
    writeStreamed(io.netty.handler.codec.http.HttpResponse response, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> content)
     

    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.netty.body.NettyWriteContext

    writeFull
  • Method Details

    • alloc

      public io.netty.buffer.ByteBufAllocator alloc()
      Specified by:
      alloc in interface io.micronaut.http.netty.body.NettyWriteContext
    • attachment

      public void attachment(Object attachment)
      Set an attachment that is passed to RequestHandler.responseWritten(java.lang.Object). Defaults to null.
      Specified by:
      attachment in interface OutboundAccess
      Parameters:
      attachment - The attachment to forward
    • closeAfterWrite

      public void closeAfterWrite()
      Mark this channel to be closed after this response has been written.
      Specified by:
      closeAfterWrite in interface OutboundAccess
    • writeFull

      public void writeFull(io.netty.handler.codec.http.FullHttpResponse response, boolean headResponse)
      Specified by:
      writeFull in interface io.micronaut.http.netty.body.NettyWriteContext
    • writeStreamed

      public void writeStreamed(io.netty.handler.codec.http.HttpResponse response, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> content)
      Specified by:
      writeStreamed in interface io.micronaut.http.netty.body.NettyWriteContext
    • write

      public void write(@NonNull @NonNull io.netty.handler.codec.http.HttpResponse response, @NonNull @NonNull io.micronaut.http.body.ByteBody body)
      Specified by:
      write in interface io.micronaut.http.netty.body.NettyWriteContext