Package com.linkedin.alpini.netty4.misc
Class Http2Utils
java.lang.Object
com.linkedin.alpini.netty4.misc.Http2Utils
HTTP/2 utility methods.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanisHttp2ParentChannelPipeline(io.netty.channel.ChannelPipeline pipeline) static booleanisHttp2Pipeline(io.netty.channel.ChannelPipeline pipeline) Deprecated.static booleanChecks if an exception is thrown because of too many active streams.static booleanisUnexpectedError(long errorCode, boolean fromRemote) static booleanisUnexpectedError(io.netty.handler.codec.http2.Http2Error errorEnum) static booleanisUnexpectedError(io.netty.handler.codec.http2.Http2Error errorEnum, boolean fromRemote) Returns true, if the enum is a known error or unknown error code.
- 
Method Details- 
isTooManyActiveStreamsErrorChecks if an exception is thrown because of too many active streams.- Parameters:
- t- Exception
- Returns:
- true if caused by active streams limit
 
- 
isHttp2PipelineDeprecated.
- 
isHttp2ParentChannelPipelinepublic static boolean isHttp2ParentChannelPipeline(io.netty.channel.ChannelPipeline pipeline) 
- 
isUnexpectedErrorpublic static boolean isUnexpectedError(long errorCode, boolean fromRemote) 
- 
isUnexpectedErrorpublic static boolean isUnexpectedError(@Nullable io.netty.handler.codec.http2.Http2Error errorEnum) 
- 
isUnexpectedErrorpublic static boolean isUnexpectedError(@Nullable io.netty.handler.codec.http2.Http2Error errorEnum, boolean fromRemote) Returns true, if the enum is a known error or unknown error code.
 
-