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

public Class DecoratingHttp2ConnectionDecoder

extends Object
implements Http2ConnectionDecoder
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http2.Http2ConnectionDecoder, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
io.netty.handler.codec.http2.Http2MaxRstFrameDecoder, io.netty.handler.codec.http2.Http2EmptyDataFrameConnectionDecoder
Annotations
@UnstableApi
Static Imports
io.netty.util.internal.ObjectUtil.checkNotNull

Decorator around another Http2ConnectionDecoder instance.

Field Summary

Modifier and TypeField and Description
private final Http2ConnectionDecoder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

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

Closes this stream and releases any system resources associated with it.
public Http2Connection
connection()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.connection.

Provides direct access to the underlying connection.
public void
decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out)

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.decodeFrame.

Called by the Http2ConnectionHandler to decode the next frame from the input buffer.
public Http2LocalFlowController
flowController()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.flowController.

Provides the local flow controller for managing inbound traffic.
public void
frameListener(Http2FrameListener listener)

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Set the Http2FrameListener which will be notified when frames are decoded.
public Http2FrameListener
frameListener()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Get the Http2FrameListener which will be notified when frames are decoded.
public void
public Http2Settings
localSettings()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.localSettings.

Gets the local settings for this endpoint of the HTTP/2 connection.
public boolean
prefaceReceived()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.prefaceReceived.

Indicates whether or not the first initial SETTINGS frame was received from the remote endpoint.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final Http2ConnectionDecoder delegate

Constructor Detail

DecoratingHttp2ConnectionDecoderback to summary
public DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate)

Method Detail

closeback to summary
public void close()

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

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
connectionback to summary
public Http2Connection connection()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.connection.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.connection.

Provides direct access to the underlying connection.

Annotations
@Override
decodeFrameback to summary
public void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.decodeFrame.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.decodeFrame.

Called by the Http2ConnectionHandler to decode the next frame from the input buffer.

Annotations
@Override
flowControllerback to summary
public Http2LocalFlowController flowController()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.flowController.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.flowController.

Provides the local flow controller for managing inbound traffic.

Annotations
@Override
frameListenerback to summary
public void frameListener(Http2FrameListener listener)

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Set the Http2FrameListener which will be notified when frames are decoded.

This must be set before frames are decoded.

Annotations
@Override
frameListenerback to summary
public Http2FrameListener frameListener()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.frameListener.

Get the Http2FrameListener which will be notified when frames are decoded.

Annotations
@Override
lifecycleManagerback to summary
public void lifecycleManager(Http2LifecycleManager lifecycleManager)

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.lifecycleManager.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.lifecycleManager.

Sets the lifecycle manager. Must be called as part of initialization before the decoder is used.

Annotations
@Override
localSettingsback to summary
public Http2Settings localSettings()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.localSettings.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.localSettings.

Gets the local settings for this endpoint of the HTTP/2 connection.

Annotations
@Override
prefaceReceivedback to summary
public boolean prefaceReceived()

Implements io.netty.handler.codec.http2.Http2ConnectionDecoder.prefaceReceived.

Doc from io.netty.handler.codec.http2.Http2ConnectionDecoder.prefaceReceived.

Indicates whether or not the first initial SETTINGS frame was received from the remote endpoint.

Annotations
@Override