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

public final Class DefaultHttp2UnknownFrame

extends BufferHolder<Http2UnknownFrame>
implements Http2UnknownFrame
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.http2.Http2UnknownFrame, io.netty5.util.Resource, java.lang.AutoCloseable, io.netty5.handler.codec.http2.Http2StreamFrame, io.netty5.handler.codec.http2.Http2Frame
Annotations
@UnstableApi
Imports
io.netty5.buffer.Buffer, .BufferHolder, io.netty5.util.internal.StringUtil, .UnstableApi, java.nio.charset.StandardCharsets

Field Summary

Modifier and TypeField and Description
private final Http2Flags
private final byte
private Http2FrameStream

Constructor Summary

AccessConstructor and Description
public
DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags)

public
DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, Buffer data)

Method Summary

Modifier and TypeMethod and Description
public Buffer
content()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.content.

Get the data content associated with this unknown frame.
public DefaultHttp2UnknownFrame
copy()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.copy.

Create a copy of this unknown frame, which in turn contain a copy of the frame contents.
public boolean
equals(Object
The reference object with which to compare.
o
)

Overrides io.netty5.buffer.BufferHolder.equals.

This implementation of the equals operation is restricted to work only with instances of the same class.
public Http2Flags
flags()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.flags.

Get the Http2Flags set on this unknown frame.
public byte
public int
hashCode()

Overrides io.netty5.buffer.BufferHolder.hashCode.

Returns a hash code value for this 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.
protected DefaultHttp2UnknownFrame
receive(Buffer
The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.
buf
)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient.
public Http2FrameStream
stream()

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

Returns the Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.
public DefaultHttp2UnknownFrame
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from io.netty5.buffer.BufferHolder:
closegetBuffergetBufferVolatileisAccessiblereplaceBufferreplaceBufferVolatilesendtouch

Field Detail

flagsback to summary
private final Http2Flags flags
frameTypeback to summary
private final byte frameType
streamback to summary
private Http2FrameStream stream

Constructor Detail

DefaultHttp2UnknownFrameback to summary
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags)
DefaultHttp2UnknownFrameback to summary
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, Buffer data)

Method Detail

contentback to summary
public Buffer content()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.content.

Doc from io.netty5.handler.codec.http2.Http2UnknownFrame.content.

Get the data content associated with this unknown frame.

The buffer will be empty if there is no data with this unknown frame.

Returns:Buffer

The contents of this unknown frame.

Annotations
@Override
copyback to summary
public DefaultHttp2UnknownFrame copy()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.copy.

Doc from io.netty5.handler.codec.http2.Http2UnknownFrame.copy.

Create a copy of this unknown frame, which in turn contain a copy of the frame contents.

Returns:DefaultHttp2UnknownFrame

A copy of this unknown frame.

Annotations
@Override
equalsback to summary
public boolean equals(Object o)

Overrides io.netty5.buffer.BufferHolder.equals.

Doc from io.netty5.buffer.BufferHolder.equals.

This implementation of the equals operation is restricted to work only with instances of the same class. The reason for that is that Netty library already has a number of classes that extend BufferHolder and override equals method with an additional comparison logic, and we need the symmetric property of the equals operation to be preserved.

Parameters
o:Object

The reference object with which to compare.

Returns:boolean

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

Annotations
@Override
flagsback to summary
public Http2Flags flags()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.flags.

Doc from io.netty5.handler.codec.http2.Http2UnknownFrame.flags.

Get the Http2Flags set on this unknown frame.

Returns:Http2Flags

The flags set on this frame.

Annotations
@Override
frameTypeback to summary
public byte frameType()

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.frameType.

Doc from io.netty5.handler.codec.http2.Http2UnknownFrame.frameType.

Get the raw frame type. This is the type value that wasn't recognized and caused this to be captured as an unknown frame.

Returns:byte

The raw frame type.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides io.netty5.buffer.BufferHolder.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this 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
receiveback to summary
protected DefaultHttp2UnknownFrame receive(Buffer buf)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Doc from io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient. The BufferHolder should return a new concrete instance, that wraps the given Buffer object.

Parameters
buf:Buffer

The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.

Returns:DefaultHttp2UnknownFrame

A new buffer holder instance, containing the given buffer.

Annotations
@Override
streamback to summary
public Http2FrameStream stream()

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

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

Returns the Http2FrameStream object for this frame, or null if the frame has yet to be associated with a stream.

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

Implements io.netty5.handler.codec.http2.Http2UnknownFrame.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