Package io.netty.handler.codec.http2
Class DefaultHttp2ResetFrame
java.lang.Object
io.netty.handler.codec.http2.AbstractHttp2StreamFrame
io.netty.handler.codec.http2.DefaultHttp2ResetFrame
- All Implemented Interfaces:
Http2Frame,Http2ResetFrame,Http2StreamFrame
public final class DefaultHttp2ResetFrame
extends AbstractHttp2StreamFrame
implements Http2ResetFrame
The default
Http2ResetFrame implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttp2ResetFrame(long errorCode) Construct a reset message.DefaultHttp2ResetFrame(Http2Error error) Construct a reset message. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueifohas equalstreamto this object.longThe reason for resetting the stream.inthashCode()name()Returns the name of the HTTP/2 frame e.g.stream(Http2FrameStream stream) Set theHttp2FrameStreamobject for this frame.toString()Methods inherited from class io.netty.handler.codec.http2.AbstractHttp2StreamFrame
streamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.handler.codec.http2.Http2StreamFrame
stream
-
Field Details
-
errorCode
private final long errorCode
-
-
Constructor Details
-
DefaultHttp2ResetFrame
Construct a reset message.- Parameters:
error- the non-nullreason for reset
-
DefaultHttp2ResetFrame
public DefaultHttp2ResetFrame(long errorCode) Construct a reset message.- Parameters:
errorCode- the reason for reset
-
-
Method Details
-
stream
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2StreamFrame- Overrides:
streamin classAbstractHttp2StreamFrame
-
name
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
errorCode
public long errorCode()Description copied from interface:Http2ResetFrameThe reason for resetting the stream. Represented as an HTTP/2 error code.- Specified by:
errorCodein interfaceHttp2ResetFrame
-
toString
-
equals
Description copied from class:AbstractHttp2StreamFrameReturnstrueifohas equalstreamto this object.- Overrides:
equalsin classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractHttp2StreamFrame
-