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 boolean
isHttp2ParentChannelPipeline
(io.netty.channel.ChannelPipeline pipeline) static boolean
isHttp2Pipeline
(io.netty.channel.ChannelPipeline pipeline) Deprecated.static boolean
Checks if an exception is thrown because of too many active streams.static boolean
isUnexpectedError
(long errorCode, boolean fromRemote) static boolean
isUnexpectedError
(io.netty.handler.codec.http2.Http2Error errorEnum) static boolean
isUnexpectedError
(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.
-