@UnstableApi public final class DefaultHttp2ResetFrame extends AbstractHttp2StreamFrame implements Http2ResetFrame
Http2ResetFrame
implementation.构造器和说明 |
---|
DefaultHttp2ResetFrame(Http2Error error)
Construct a reset message.
|
DefaultHttp2ResetFrame(long errorCode)
Construct a reset message.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o)
Returns
true if o has equal stream to this object. |
long |
errorCode()
The reason for resetting the stream.
|
int |
hashCode() |
java.lang.String |
name()
Returns the name of the HTTP/2 frame e.g.
|
DefaultHttp2ResetFrame |
stream(Http2FrameStream stream)
Set the
Http2FrameStream object for this frame. |
java.lang.String |
toString() |
stream
stream
public DefaultHttp2ResetFrame(Http2Error error)
error
- the non-null
reason for resetpublic DefaultHttp2ResetFrame(long errorCode)
errorCode
- the reason for resetpublic DefaultHttp2ResetFrame stream(Http2FrameStream stream)
Http2StreamFrame
Http2FrameStream
object for this frame.stream
在接口中 Http2StreamFrame
stream
在类中 AbstractHttp2StreamFrame
public java.lang.String name()
Http2Frame
name
在接口中 Http2Frame
public long errorCode()
Http2ResetFrame
errorCode
在接口中 Http2ResetFrame
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
AbstractHttp2StreamFrame
true
if o
has equal stream
to this object.equals
在类中 AbstractHttp2StreamFrame
public int hashCode()
hashCode
在类中 AbstractHttp2StreamFrame