Package io.netty5.handler.codec.http2
Class DefaultHttp2UnknownFrame
- java.lang.Object
-
- io.netty5.buffer.BufferHolder<Http2UnknownFrame>
-
- io.netty5.handler.codec.http2.DefaultHttp2UnknownFrame
-
- All Implemented Interfaces:
Http2Frame,Http2StreamFrame,Http2UnknownFrame,io.netty5.util.Resource<Http2UnknownFrame>,AutoCloseable
@UnstableApi public final class DefaultHttp2UnknownFrame extends io.netty5.buffer.BufferHolder<Http2UnknownFrame> implements Http2UnknownFrame
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags)DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, io.netty5.buffer.Buffer data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty5.buffer.Buffercontent()Get the data content associated with this unknown frame.DefaultHttp2UnknownFramecopy()Create a copy of this unknown frame, which in turn contain a copy of the frame contents.booleanequals(Object o)Http2Flagsflags()Get theHttp2Flagsset on this unknown frame.byteframeType()Get the raw frame type.inthashCode()Stringname()Returns the name of the HTTP/2 frame e.g.protected DefaultHttp2UnknownFramereceive(io.netty5.buffer.Buffer buf)Http2FrameStreamstream()Returns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.DefaultHttp2UnknownFramestream(Http2FrameStream stream)Set theHttp2FrameStreamobject for this frame.StringtoString()-
Methods inherited from class io.netty5.buffer.BufferHolder
close, getBuffer, getBufferVolatile, isAccessible, replaceBuffer, replaceBufferVolatile, send, touch
-
-
-
-
Constructor Detail
-
DefaultHttp2UnknownFrame
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags)
-
DefaultHttp2UnknownFrame
public DefaultHttp2UnknownFrame(byte frameType, Http2Flags flags, io.netty5.buffer.Buffer data)
-
-
Method Detail
-
content
public io.netty5.buffer.Buffer content()
Description copied from interface:Http2UnknownFrameGet the data content associated with this unknown frame.The buffer will be empty if there is no data with this unknown frame.
- Specified by:
contentin interfaceHttp2UnknownFrame- Returns:
- The contents of this unknown frame.
-
stream
public Http2FrameStream stream()
Description copied from interface:Http2StreamFrameReturns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.- Specified by:
streamin interfaceHttp2StreamFrame- Specified by:
streamin interfaceHttp2UnknownFrame
-
stream
public DefaultHttp2UnknownFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2StreamFrame- Specified by:
streamin interfaceHttp2UnknownFrame
-
frameType
public byte frameType()
Description copied from interface:Http2UnknownFrameGet the raw frame type. This is the type value that wasn't recognized and caused this to be captured as an unknown frame.- Specified by:
frameTypein interfaceHttp2UnknownFrame- Returns:
- The raw frame type.
-
flags
public Http2Flags flags()
Description copied from interface:Http2UnknownFrameGet theHttp2Flagsset on this unknown frame.- Specified by:
flagsin interfaceHttp2UnknownFrame- Returns:
- The flags set on this frame.
-
name
public String name()
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
copy
public DefaultHttp2UnknownFrame copy()
Description copied from interface:Http2UnknownFrameCreate a copy of this unknown frame, which in turn contain a copy of the frame contents.- Specified by:
copyin interfaceHttp2UnknownFrame- Returns:
- A copy of this unknown frame.
-
receive
protected DefaultHttp2UnknownFrame receive(io.netty5.buffer.Buffer buf)
- Specified by:
receivein classio.netty5.buffer.BufferHolder<Http2UnknownFrame>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classio.netty5.buffer.BufferHolder<Http2UnknownFrame>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classio.netty5.buffer.BufferHolder<Http2UnknownFrame>
-
-