- java.lang.Object
-
- io.netty5.handler.codec.http2.AbstractHttp2StreamFrame
-
- io.netty5.handler.codec.http2.DefaultHttp2ResetFrame
-
- All Implemented Interfaces:
Http2Frame
,Http2ResetFrame
,Http2StreamFrame
@UnstableApi public final class DefaultHttp2ResetFrame extends AbstractHttp2StreamFrame implements Http2ResetFrame
The defaultHttp2ResetFrame
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2ResetFrame(long errorCode)
Construct a reset message.DefaultHttp2ResetFrame(Http2Error error)
Construct a reset message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Returnstrue
ifo
has equalstream
to this object.long
errorCode()
The reason for resetting the stream.int
hashCode()
String
name()
Returns the name of the HTTP/2 frame e.g.DefaultHttp2ResetFrame
stream(Http2FrameStream stream)
Set theHttp2FrameStream
object for this frame.String
toString()
-
Methods inherited from class io.netty5.handler.codec.http2.AbstractHttp2StreamFrame
stream
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2StreamFrame
stream
-
-
-
-
Constructor Detail
-
DefaultHttp2ResetFrame
public DefaultHttp2ResetFrame(Http2Error error)
Construct a reset message.- Parameters:
error
- the non-null
reason for reset
-
DefaultHttp2ResetFrame
public DefaultHttp2ResetFrame(long errorCode)
Construct a reset message.- Parameters:
errorCode
- the reason for reset
-
-
Method Detail
-
stream
public DefaultHttp2ResetFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrame
Set theHttp2FrameStream
object for this frame.- Specified by:
stream
in interfaceHttp2StreamFrame
- Overrides:
stream
in classAbstractHttp2StreamFrame
-
name
public String name()
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
errorCode
public long errorCode()
Description copied from interface:Http2ResetFrame
The reason for resetting the stream. Represented as an HTTP/2 error code.- Specified by:
errorCode
in interfaceHttp2ResetFrame
-
equals
public boolean equals(Object o)
Description copied from class:AbstractHttp2StreamFrame
Returnstrue
ifo
has equalstream
to this object.- Overrides:
equals
in classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractHttp2StreamFrame
-
-