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 TypeMethodDescriptionio.netty.buffer.ByteBufAllocatoralloc()voidattachment(Object attachment) Set an attachment that is passed toRequestHandler.responseWritten(java.lang.Object).voidMark this channel to be closed after this response has been written.voidwriteChunked(io.netty.handler.codec.http.HttpResponse response, io.netty.handler.codec.http.HttpChunkedInput chunkedInput) voidwriteFile(io.netty.handler.codec.http.HttpResponse response, RandomAccessFile randomAccessFile, long position, long contentLength) voidwriteFull(io.netty.handler.codec.http.FullHttpResponse response) Write a full response.voidwriteStreamed(io.netty.handler.codec.http.HttpResponse response, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> content)
-
Method Details
-
alloc
public io.netty.buffer.ByteBufAllocator alloc()- Specified by:
allocin interfaceio.micronaut.http.netty.body.NettyWriteContext
-
attachment
Set an attachment that is passed toRequestHandler.responseWritten(java.lang.Object). Defaults tonull.- 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) Write a full response.- Specified by:
writeFullin interfaceio.micronaut.http.netty.body.NettyWriteContext- Parameters:
response- The response to write
-
writeStreamed
public void writeStreamed(io.netty.handler.codec.http.HttpResponse response, org.reactivestreams.Publisher<io.netty.handler.codec.http.HttpContent> content) - Specified by:
writeStreamedin interfaceio.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:
writeChunkedin interfaceio.micronaut.http.netty.body.NettyWriteContext
-
writeFile
public void writeFile(io.netty.handler.codec.http.HttpResponse response, RandomAccessFile randomAccessFile, long position, long contentLength) - Specified by:
writeFilein interfaceio.micronaut.http.netty.body.NettyWriteContext
-