Class PipeliningServerHandler.OutboundAccess

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

public final class PipeliningServerHandler.OutboundAccess extends Object implements io.micronaut.http.netty.body.NettyWriteContext
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
    writeChunked(io.netty.handler.codec.http.HttpResponse response, io.netty.handler.codec.http.HttpChunkedInput chunkedInput)
     
    void
    writeFile(io.netty.handler.codec.http.HttpResponse response, RandomAccessFile randomAccessFile, long position, long contentLength)
     
    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.
      Parameters:
      attachment - The attachment to forward
    • closeAfterWrite

      public void closeAfterWrite()
      Mark this channel to be closed after this response has been written.
    • 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
    • writeChunked

      public void writeChunked(io.netty.handler.codec.http.HttpResponse response, io.netty.handler.codec.http.HttpChunkedInput chunkedInput)
      Specified by:
      writeChunked in interface io.micronaut.http.netty.body.NettyWriteContext
    • writeFile

      public void writeFile(io.netty.handler.codec.http.HttpResponse response, RandomAccessFile randomAccessFile, long position, long contentLength)
      Specified by:
      writeFile in interface io.micronaut.http.netty.body.NettyWriteContext