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 defaultHttp2ResetFrameimplementation.
-
-
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 booleanequals(java.lang.Object o)Returnstrueifohas equalstreamto this object.longerrorCode()The reason for resetting the stream.inthashCode()java.lang.Stringname()Returns the name of the HTTP/2 frame e.g.DefaultHttp2ResetFramestream(Http2FrameStream stream)Set theHttp2FrameStreamobject for this frame.java.lang.StringtoString()-
Methods inherited from class io.netty.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.netty.handler.codec.http2.Http2StreamFrame
stream
-
-
-
-
Constructor Detail
-
DefaultHttp2ResetFrame
public DefaultHttp2ResetFrame(Http2Error error)
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 Detail
-
stream
public DefaultHttp2ResetFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2StreamFrame- Overrides:
streamin classAbstractHttp2StreamFrame
-
name
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Description copied from class:AbstractHttp2StreamFrameReturnstrueifohas equalstreamto this object.- Overrides:
equalsin classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractHttp2StreamFrame
-
-