Top Description Fields Constructors Methods
io.netty5.handler.codec.http2

public final Class DefaultHttp2ResetFrame

extends AbstractHttp2StreamFrame
implements Http2ResetFrame
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.http2.Http2ResetFrame, io.netty5.handler.codec.http2.Http2StreamFrame, io.netty5.handler.codec.http2.Http2Frame
Annotations
@UnstableApi
Imports
io.netty5.util.internal.StringUtil, .UnstableApi

The default Http2ResetFrame implementation.

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
public
DefaultHttp2ResetFrame(Http2Error
the non-null reason for reset
error
)

Construct a reset message.

public
DefaultHttp2ResetFrame(long
the reason for reset
errorCode
)

Construct a reset message.

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Returns true if o has equal stream to this object.
public long
errorCode()

Implements io.netty5.handler.codec.http2.Http2ResetFrame.errorCode.

The reason for resetting the stream.
public int
hashCode()

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.hashCode.

Returns a hash code value for the object.
public String
name()

Implements io.netty5.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
public DefaultHttp2ResetFrame
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from io.netty5.handler.codec.http2.AbstractHttp2StreamFrame:
stream

Field Detail

errorCodeback to summary
private final long errorCode

Constructor Detail

DefaultHttp2ResetFrameback to summary
public DefaultHttp2ResetFrame(Http2Error error)

Construct a reset message.

Parameters
error:Http2Error

the non-null reason for reset

DefaultHttp2ResetFrameback to summary
public DefaultHttp2ResetFrame(long errorCode)

Construct a reset message.

Parameters
errorCode:long

the reason for reset

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Doc from io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Returns true if o has equal stream to this object.

Parameters
o:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
errorCodeback to summary
public long errorCode()

Implements io.netty5.handler.codec.http2.Http2ResetFrame.errorCode.

Doc from io.netty5.handler.codec.http2.Http2ResetFrame.errorCode.

The reason for resetting the stream. Represented as an HTTP/2 error code.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
nameback to summary
public String name()

Implements io.netty5.handler.codec.http2.Http2Frame.name.

Doc from io.netty5.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.

Annotations
@Override
streamback to summary
public DefaultHttp2ResetFrame stream(Http2FrameStream stream)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.stream.

Implements io.netty5.handler.codec.http2.Http2StreamFrame.stream.

Doc from io.netty5.handler.codec.http2.Http2StreamFrame.stream.

Set the Http2FrameStream object for this frame.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override