Package io.netty.handler.codec.http2
Class DecoratingHttp2ConnectionDecoder
java.lang.Object
io.netty.handler.codec.http2.DecoratingHttp2ConnectionDecoder
- All Implemented Interfaces:
Http2ConnectionDecoder
,Closeable
,AutoCloseable
- Direct Known Subclasses:
Http2EmptyDataFrameConnectionDecoder
,Http2MaxRstFrameDecoder
Decorator around another
Http2ConnectionDecoder
instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Provides direct access to the underlying connection.void
decodeFrame
(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Called by theHttp2ConnectionHandler
to decode the next frame from the input buffer.Provides the local flow controller for managing inbound traffic.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.Gets the local settings for this endpoint of the HTTP/2 connection.boolean
Indicates whether or not the first initialSETTINGS
frame was received from the remote endpoint.
-
Field Details
-
delegate
-
-
Constructor Details
-
DecoratingHttp2ConnectionDecoder
-
-
Method Details
-
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
Description copied from interface:Http2ConnectionDecoder
Provides direct access to the underlying connection.- Specified by:
connection
in interfaceHttp2ConnectionDecoder
-
flowController
Description copied from interface:Http2ConnectionDecoder
Provides the local flow controller for managing inbound traffic.- Specified by:
flowController
in interfaceHttp2ConnectionDecoder
-
frameListener
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
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, ByteBuf in, List<Object> out) 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
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
-