@UnstableApi public final class DefaultHttp2ResetFrame extends AbstractHttp2StreamFrame implements Http2ResetFrame
Http2ResetFrame
implementation.Constructor and Description |
---|
DefaultHttp2ResetFrame(Http2Error error)
Construct a reset message.
|
DefaultHttp2ResetFrame(long errorCode)
Construct a reset message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Returns
true if o has equal stream 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 |
streamId(int streamId)
Sets the identifier of the stream this frame applies to.
|
String |
toString() |
streamId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
streamId
public DefaultHttp2ResetFrame(Http2Error error)
error
- the non-null
reason for resetpublic DefaultHttp2ResetFrame(long errorCode)
errorCode
- the reason for resetpublic DefaultHttp2ResetFrame streamId(int streamId)
Http2StreamFrame
NOTE: This method is supposed to be called by the HTTP/2 transport only. It must not be called by users.
streamId
in interface Http2StreamFrame
streamId
in class AbstractHttp2StreamFrame
this
public String name()
Http2Frame
name
in interface Http2Frame
public long errorCode()
Http2ResetFrame
errorCode
in interface Http2ResetFrame
public boolean equals(Object o)
AbstractHttp2StreamFrame
true
if o
has equal stream
to this object.equals
in class AbstractHttp2StreamFrame
public int hashCode()
hashCode
in class AbstractHttp2StreamFrame
Copyright © 2008–2017 The Netty Project. All rights reserved.