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

public final Class DefaultHttp2UnknownFrame

extends DefaultByteBufHolder
implements Http2UnknownFrame
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.http2.Http2UnknownFrame, io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted, io.netty.handler.codec.http2.Http2StreamFrame, io.netty.handler.codec.http2.Http2Frame
Annotations
@UnstableApi
Imports
io.netty.buffer.ByteBuf, .DefaultByteBufHolder, .Unpooled, io.netty.util.internal.StringUtil, .UnstableApi

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, ByteBuf data)

Method Summary

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

Overrides io.netty.buffer.DefaultByteBufHolder.equals.

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

Overrides io.netty.buffer.DefaultByteBufHolder.hashCode.

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

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

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
public DefaultHttp2UnknownFrame
public DefaultHttp2UnknownFrame
public DefaultHttp2UnknownFrame
retain(int increment)

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.retain, io.netty.buffer.ByteBufHolder.retain.

Increases the reference count by the specified increment.
public DefaultHttp2UnknownFrame
public Http2FrameStream
stream()

Implements io.netty.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 io.netty.buffer.DefaultByteBufHolder.toString.

Returns a string representation of the object.
public DefaultHttp2UnknownFrame
touch()

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.touch, io.netty.buffer.ByteBufHolder.touch.

Records the current access location of this object for debugging purposes.
public DefaultHttp2UnknownFrame
touch(Object hint)

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.touch, io.netty.buffer.ByteBufHolder.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.buffer.DefaultByteBufHolder:
contentcontentToStringrefCntreleaserelease

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, ByteBuf data)

Method Detail

copyback to summary
public DefaultHttp2UnknownFrame copy()

Overrides io.netty.buffer.DefaultByteBufHolder.copy.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.copy, io.netty.buffer.ByteBufHolder.copy.

Doc from io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
duplicateback to summary
public DefaultHttp2UnknownFrame duplicate()

Overrides io.netty.buffer.DefaultByteBufHolder.duplicate.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.duplicate, io.netty.buffer.ByteBufHolder.duplicate.

Doc from io.netty.buffer.ByteBufHolder.duplicate.

Duplicates this ByteBufHolder. Be aware that this will not automatically call retain().

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

Overrides io.netty.buffer.DefaultByteBufHolder.equals.

Doc from io.netty.buffer.DefaultByteBufHolder.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 DefaultByteBufHolder 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.netty.handler.codec.http2.Http2UnknownFrame.flags.

Annotations
@Override
frameTypeback to summary
public byte frameType()

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

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides io.netty.buffer.DefaultByteBufHolder.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.netty.handler.codec.http2.Http2Frame.name.

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

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

Annotations
@Override
replaceback to summary
public DefaultHttp2UnknownFrame replace(ByteBuf content)

Overrides io.netty.buffer.DefaultByteBufHolder.replace.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.replace, io.netty.buffer.ByteBufHolder.replace.

Doc from io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
retainback to summary
public DefaultHttp2UnknownFrame retain()

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.retain, io.netty.buffer.ByteBufHolder.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public DefaultHttp2UnknownFrame retain(int increment)

Overrides io.netty.buffer.DefaultByteBufHolder.retain.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.retain, io.netty.buffer.ByteBufHolder.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public DefaultHttp2UnknownFrame retainedDuplicate()

Overrides io.netty.buffer.DefaultByteBufHolder.retainedDuplicate.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.retainedDuplicate, io.netty.buffer.ByteBufHolder.retainedDuplicate.

Doc from io.netty.buffer.ByteBufHolder.retainedDuplicate.

Duplicates this ByteBufHolder. This method returns a retained duplicate unlike duplicate().

Annotations
@Override
streamback to summary
public Http2FrameStream stream()

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

Doc from io.netty.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.netty.handler.codec.http2.Http2UnknownFrame.stream.

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

Set the Http2FrameStream object for this frame.

Annotations
@Override
toStringback to summary
public String toString()

Overrides io.netty.buffer.DefaultByteBufHolder.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
touchback to summary
public DefaultHttp2UnknownFrame touch()

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.touch, io.netty.buffer.ByteBufHolder.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public DefaultHttp2UnknownFrame touch(Object hint)

Overrides io.netty.buffer.DefaultByteBufHolder.touch.

Implements io.netty.handler.codec.http2.Http2UnknownFrame.touch, io.netty.buffer.ByteBufHolder.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.

Annotations
@Override