Class DecoratingHttp2ConnectionDecoder
java.lang.Object
io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
- All Implemented Interfaces:
Http2ConnectionDecoder, Closeable, AutoCloseable
Decorator around another
Http2ConnectionDecoder instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Provides direct access to the underlying connection.voiddecodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Called by theHttp2ConnectionHandlerto decode the next frame from the input buffer.Provides the local flow controller for managing inbound traffic.Get theHttp2FrameListenerwhich will be notified when frames are decoded.voidframeListener(Http2FrameListener listener) Set theHttp2FrameListenerwhich will be notified when frames are decoded.voidlifecycleManager(Http2LifecycleManager lifecycleManager) Sets the lifecycle manager.Gets the local settings for this endpoint of the HTTP/2 connection.booleanIndicates whether or not the first initialSETTINGSframe was received from the remote endpoint.
-
Constructor Details
-
DecoratingHttp2ConnectionDecoder
-
-
Method Details
-
lifecycleManager
Description copied from interface:Http2ConnectionDecoderSets the lifecycle manager. Must be called as part of initialization before the decoder is used.- Specified by:
lifecycleManagerin interfaceHttp2ConnectionDecoder
-
connection
Description copied from interface:Http2ConnectionDecoderProvides direct access to the underlying connection.- Specified by:
connectionin interfaceHttp2ConnectionDecoder
-
flowController
Description copied from interface:Http2ConnectionDecoderProvides the local flow controller for managing inbound traffic.- Specified by:
flowControllerin interfaceHttp2ConnectionDecoder
-
frameListener
Description copied from interface:Http2ConnectionDecoderSet theHttp2FrameListenerwhich will be notified when frames are decoded.This must be set before frames are decoded.
- Specified by:
frameListenerin interfaceHttp2ConnectionDecoder
-
frameListener
Description copied from interface:Http2ConnectionDecoderGet theHttp2FrameListenerwhich will be notified when frames are decoded.- Specified by:
frameListenerin interfaceHttp2ConnectionDecoder
-
decodeFrame
public void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Http2Exception Description copied from interface:Http2ConnectionDecoderCalled by theHttp2ConnectionHandlerto decode the next frame from the input buffer.- Specified by:
decodeFramein interfaceHttp2ConnectionDecoder- Throws:
Http2Exception
-
localSettings
Description copied from interface:Http2ConnectionDecoderGets the local settings for this endpoint of the HTTP/2 connection.- Specified by:
localSettingsin interfaceHttp2ConnectionDecoder
-
prefaceReceived
public boolean prefaceReceived()Description copied from interface:Http2ConnectionDecoderIndicates whether or not the first initialSETTINGSframe was received from the remote endpoint.- Specified by:
prefaceReceivedin interfaceHttp2ConnectionDecoder
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHttp2ConnectionDecoder
-