@UnstableApi public class DecoratingHttp2ConnectionDecoder extends java.lang.Object implements Http2ConnectionDecoder
Http2ConnectionDecoder
实例的装饰器。
Constructor and Description |
---|
DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Http2Connection |
connection()
提供对底层连接的直接访问。
|
void |
decodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out)
由 Http2ConnectionHandler 调用以解码来自输入缓冲器的下一帧。
|
Http2LocalFlowController |
flowController()
提供本地流量控制器来管理入站流量。
|
Http2FrameListener |
frameListener()
获取 Http2FrameListener ,当帧被解码时将被通知。
|
void |
frameListener(Http2FrameListener listener)
设置 Http2FrameListener ,当帧被解码时将被通知。
|
void |
lifecycleManager(Http2LifecycleManager lifecycleManager)
设置生命周期管理器。
|
Http2Settings |
localSettings()
获取HTTP / 2连接的此端点的本地设置。
|
boolean |
prefaceReceived()
指示是否从远程端点接收到第一个初始
SETTINGS 帧。
|
public DecoratingHttp2ConnectionDecoder(Http2ConnectionDecoder delegate)
public void lifecycleManager(Http2LifecycleManager lifecycleManager)
Http2ConnectionDecoder
复制的描述
lifecycleManager
接口
Http2ConnectionDecoder
public Http2Connection connection()
Http2ConnectionDecoder
connection
在界面
Http2ConnectionDecoder
public Http2LocalFlowController flowController()
Http2ConnectionDecoder
flowController
在界面
Http2ConnectionDecoder
public void frameListener(Http2FrameListener listener)
Http2ConnectionDecoder
Http2FrameListener
,当帧被解码时将被通知。
这必须在解码帧之前设置。
frameListener
接口
Http2ConnectionDecoder
public Http2FrameListener frameListener()
Http2ConnectionDecoder
Http2FrameListener
,帧将被解码时将被通知。
frameListener
接口
Http2ConnectionDecoder
public void decodeFrame(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out) throws Http2Exception
Http2ConnectionDecoder
Http2ConnectionHandler
调用以解码来自输入缓冲区的下一帧。
decodeFrame
接口
Http2ConnectionDecoder
Http2Exception
public Http2Settings localSettings()
Http2ConnectionDecoder
localSettings
在界面
Http2ConnectionDecoder
public boolean prefaceReceived()
Http2ConnectionDecoder
SETTINGS
帧。
prefaceReceived
,界面
Http2ConnectionDecoder
public void close()
close
在界面
Http2ConnectionDecoder
close
接口
java.io.Closeable
close
接口
java.lang.AutoCloseable
Copyright © 2008–2018 The Netty Project. All rights reserved.