Package com.linkedin.alpini.netty4.misc
Class Http2Utils
java.lang.Object
com.linkedin.alpini.netty4.misc.Http2Utils
HTTP/2 utility methods.
-
Method Summary
Modifier 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
-
isTooManyActiveStreamsError
Checks if an exception is thrown because of too many active streams.- Parameters:
t- Exception- Returns:
- true if caused by active streams limit
-
isHttp2Pipeline
Deprecated. -
isHttp2ParentChannelPipeline
public static boolean isHttp2ParentChannelPipeline(io.netty.channel.ChannelPipeline pipeline) -
isUnexpectedError
public static boolean isUnexpectedError(long errorCode, boolean fromRemote) -
isUnexpectedError
public static boolean isUnexpectedError(@Nullable io.netty.handler.codec.http2.Http2Error errorEnum) -
isUnexpectedError
public 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.
-