Package com.linkedin.alpini.netty4.misc
Class Http2Utils
- java.lang.Object
-
- com.linkedin.alpini.netty4.misc.Http2Utils
-
public final class Http2Utils extends java.lang.Object
HTTP/2 utility methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
isHttp2ParentChannelPipeline(io.netty.channel.ChannelPipeline pipeline)
static boolean
isHttp2Pipeline(io.netty.channel.ChannelPipeline pipeline)
Deprecated.static boolean
isTooManyActiveStreamsError(java.lang.Throwable t)
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 Detail
-
isTooManyActiveStreamsError
public static boolean isTooManyActiveStreamsError(java.lang.Throwable t)
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 public static boolean isHttp2Pipeline(io.netty.channel.ChannelPipeline pipeline)
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.
-
-