Class Http2AccessLogConnectionEncoder

java.lang.Object
io.netty.handler.codec.http2.DecoratingHttp2FrameWriter
io.netty.handler.codec.http2.DecoratingHttp2ConnectionEncoder
io.micronaut.http.server.netty.handler.accesslog.Http2AccessLogConnectionEncoder
All Implemented Interfaces:
io.netty.handler.codec.http2.Http2ConnectionEncoder, io.netty.handler.codec.http2.Http2DataWriter, io.netty.handler.codec.http2.Http2FrameWriter, io.netty.handler.codec.http2.Http2SettingsReceivedConsumer, Closeable, AutoCloseable

@Internal public final class Http2AccessLogConnectionEncoder extends io.netty.handler.codec.http2.DecoratingHttp2ConnectionEncoder
Special Http2ConnectionEncoder that logs the response data.
Since:
4.4.2
Author:
Jonas Konrad
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.handler.codec.http2.Http2FrameWriter

    io.netty.handler.codec.http2.Http2FrameWriter.Configuration
  • Constructor Summary

    Constructors
    Constructor
    Description
    Http2AccessLogConnectionEncoder(io.netty.handler.codec.http2.Http2ConnectionEncoder delegate, Http2AccessLogManager manager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.netty.channel.ChannelFuture
    writeData(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
     
    io.netty.channel.ChannelFuture
    writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
     
    io.netty.channel.ChannelFuture
    writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
     

    Methods inherited from class io.netty.handler.codec.http2.DecoratingHttp2ConnectionEncoder

    connection, consumeReceivedSettings, flowController, frameWriter, lifecycleManager, pollSentSettings, remoteSettings

    Methods inherited from class io.netty.handler.codec.http2.DecoratingHttp2FrameWriter

    close, configuration, writeFrame, writeGoAway, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.netty.handler.codec.http2.Http2ConnectionEncoder

    writeFrame

    Methods inherited from interface io.netty.handler.codec.http2.Http2FrameWriter

    close, configuration, writeGoAway, writePing, writePriority, writePushPromise, writeRstStream, writeSettings, writeSettingsAck, writeWindowUpdate
  • Constructor Details

    • Http2AccessLogConnectionEncoder

      public Http2AccessLogConnectionEncoder(io.netty.handler.codec.http2.Http2ConnectionEncoder delegate, Http2AccessLogManager manager)
  • Method Details

    • writeHeaders

      public io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
      Specified by:
      writeHeaders in interface io.netty.handler.codec.http2.Http2FrameWriter
      Overrides:
      writeHeaders in class io.netty.handler.codec.http2.DecoratingHttp2FrameWriter
    • writeHeaders

      public io.netty.channel.ChannelFuture writeHeaders(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
      Specified by:
      writeHeaders in interface io.netty.handler.codec.http2.Http2FrameWriter
      Overrides:
      writeHeaders in class io.netty.handler.codec.http2.DecoratingHttp2FrameWriter
    • writeData

      public io.netty.channel.ChannelFuture writeData(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream, io.netty.channel.ChannelPromise promise)
      Specified by:
      writeData in interface io.netty.handler.codec.http2.Http2DataWriter
      Overrides:
      writeData in class io.netty.handler.codec.http2.DecoratingHttp2FrameWriter