Package io.netty.handler.codec.http2
Class DecoratingHttp2ConnectionDecoder
- java.lang.Object
-
- io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
-
- All Implemented Interfaces:
Http2ConnectionDecoder,java.io.Closeable,java.lang.AutoCloseable
public class DecoratingHttp2ConnectionDecoder extends java.lang.Object implements Http2ConnectionDecoder
Decorator around anotherHttp2ConnectionDecoderinstance.
-
-
Constructor Summary
Constructors Constructor Description DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Http2Connectionconnection()Provides direct access to the underlying connection.voiddecodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)Called by theHttp2ConnectionHandlerto decode the next frame from the input buffer.Http2LocalFlowControllerflowController()Provides the local flow controller for managing inbound traffic.Http2FrameListenerframeListener()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.Http2SettingslocalSettings()Gets the local settings for this endpoint of the HTTP/2 connection.booleanprefaceReceived()Indicates whether or not the first initialSETTINGSframe was received from the remote endpoint.
-
-
-
Constructor Detail
-
DecoratingHttp2ConnectionDecoder
public DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate)
-
-
Method Detail
-
lifecycleManager
public void lifecycleManager(Http2LifecycleManager 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
public Http2Connection connection()
Description copied from interface:Http2ConnectionDecoderProvides direct access to the underlying connection.- Specified by:
connectionin interfaceHttp2ConnectionDecoder
-
flowController
public Http2LocalFlowController flowController()
Description copied from interface:Http2ConnectionDecoderProvides the local flow controller for managing inbound traffic.- Specified by:
flowControllerin interfaceHttp2ConnectionDecoder
-
frameListener
public void frameListener(Http2FrameListener listener)
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
public Http2FrameListener 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, java.util.List<java.lang.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
public Http2Settings 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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceHttp2ConnectionDecoder
-
-