Top Description Fields Constructors Methods
io.netty.handler.codec.http2

public Class Http2InboundFrameLogger

extends Object
implements Http2FrameReader
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http2.Http2FrameReader, java.io.Closeable, java.lang.AutoCloseable
Annotations
@UnstableApi
Static Imports
io.netty.handler.codec.http2.Http2FrameLogger.Direction.INBOUND, io.netty.util.internal.ObjectUtil.checkNotNull

Decorator around a Http2FrameReader that logs all inbound frames before calling back the listener.

Field Summary

Modifier and TypeField and Description
private final Http2FrameLogger
private final Http2FrameReader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements io.netty.handler.codec.http2.Http2FrameReader.close.

Closes this reader and frees any allocated resources.
public Http2FrameReader.Configuration
configuration()

Implements io.netty.handler.codec.http2.Http2FrameReader.configuration.

Get the configuration related elements for this Http2FrameReader
public void
readFrame(ChannelHandlerContext ctx, ByteBuf input, final Http2FrameListener listener)

Implements io.netty.handler.codec.http2.Http2FrameReader.readFrame.

Attempts to read the next frame from the input buffer.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private final Http2FrameLogger logger
readerback to summary
private final Http2FrameReader reader

Constructor Detail

Http2InboundFrameLoggerback to summary
public Http2InboundFrameLogger(Http2FrameReader reader, Http2FrameLogger logger)

Method Detail

closeback to summary
public void close()

Implements io.netty.handler.codec.http2.Http2FrameReader.close.

Doc from io.netty.handler.codec.http2.Http2FrameReader.close.

Closes this reader and frees any allocated resources.

Annotations
@Override
configurationback to summary
public Http2FrameReader.Configuration configuration()

Implements io.netty.handler.codec.http2.Http2FrameReader.configuration.

Doc from io.netty.handler.codec.http2.Http2FrameReader.configuration.

Get the configuration related elements for this Http2FrameReader

Annotations
@Override
readFrameback to summary
public void readFrame(ChannelHandlerContext ctx, ByteBuf input, final Http2FrameListener listener) throws Http2Exception

Implements io.netty.handler.codec.http2.Http2FrameReader.readFrame.

Doc from io.netty.handler.codec.http2.Http2FrameReader.readFrame.

Attempts to read the next frame from the input buffer. If enough data is available to fully read the frame, notifies the listener of the read frame.

Annotations
@Override