Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Class DecoratingHttp2ConnectionDecoder
- java.lang.Object
-
- io.netty5.handler.codec.http2.DecoratingHttp2ConnectionDecoder
-
- All Implemented Interfaces:
Http2ConnectionDecoder
,Closeable
,AutoCloseable
@UnstableApi public class DecoratingHttp2ConnectionDecoder extends Object implements Http2ConnectionDecoder
Decorator around anotherHttp2ConnectionDecoder
instance.
-
-
Constructor Summary
Constructors Constructor Description DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Http2Connection
connection()
Provides direct access to the underlying connection.void
decodeFrame(ChannelHandlerContext ctx, Buffer in)
Called by theHttp2ConnectionHandler
to decode the next frame from the input buffer.Http2LocalFlowController
flowController()
Provides the local flow controller for managing inbound traffic.Http2FrameListener
frameListener()
Get theHttp2FrameListener
which will be notified when frames are decoded.void
frameListener(Http2FrameListener listener)
Set theHttp2FrameListener
which will be notified when frames are decoded.void
lifecycleManager(Http2LifecycleManager lifecycleManager)
Sets the lifecycle manager.Http2Settings
localSettings()
Gets the local settings for this endpoint of the HTTP/2 connection.boolean
prefaceReceived()
Indicates whether or not the first initialSETTINGS
frame 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:Http2ConnectionDecoder
Sets the lifecycle manager. Must be called as part of initialization before the decoder is used.- Specified by:
lifecycleManager
in interfaceHttp2ConnectionDecoder
-
connection
public Http2Connection connection()
Description copied from interface:Http2ConnectionDecoder
Provides direct access to the underlying connection.- Specified by:
connection
in interfaceHttp2ConnectionDecoder
-
flowController
public Http2LocalFlowController flowController()
Description copied from interface:Http2ConnectionDecoder
Provides the local flow controller for managing inbound traffic.- Specified by:
flowController
in interfaceHttp2ConnectionDecoder
-
frameListener
public void frameListener(Http2FrameListener listener)
Description copied from interface:Http2ConnectionDecoder
Set theHttp2FrameListener
which will be notified when frames are decoded.This must be set before frames are decoded.
- Specified by:
frameListener
in interfaceHttp2ConnectionDecoder
-
frameListener
public Http2FrameListener frameListener()
Description copied from interface:Http2ConnectionDecoder
Get theHttp2FrameListener
which will be notified when frames are decoded.- Specified by:
frameListener
in interfaceHttp2ConnectionDecoder
-
decodeFrame
public void decodeFrame(ChannelHandlerContext ctx, Buffer in) throws Http2Exception
Description copied from interface:Http2ConnectionDecoder
Called by theHttp2ConnectionHandler
to decode the next frame from the input buffer.- Specified by:
decodeFrame
in interfaceHttp2ConnectionDecoder
- Throws:
Http2Exception
-
localSettings
public Http2Settings localSettings()
Description copied from interface:Http2ConnectionDecoder
Gets the local settings for this endpoint of the HTTP/2 connection.- Specified by:
localSettings
in interfaceHttp2ConnectionDecoder
-
prefaceReceived
public boolean prefaceReceived()
Description copied from interface:Http2ConnectionDecoder
Indicates whether or not the first initialSETTINGS
frame was received from the remote endpoint.- Specified by:
prefaceReceived
in interfaceHttp2ConnectionDecoder
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceHttp2ConnectionDecoder
-
-