Package io.netty.handler.codec.http2
Class DefaultHttp2PingFrame
- java.lang.Object
-
- io.netty.handler.codec.http2.DefaultHttp2PingFrame
-
- All Implemented Interfaces:
Http2Frame,Http2PingFrame
public class DefaultHttp2PingFrame extends java.lang.Object implements Http2PingFrame
The defaultHttp2PingFrameimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2PingFrame(long content)DefaultHttp2PingFrame(long content, boolean ack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanack()Whentrue, indicates that this ping is a ping response.longcontent()Returns the eight byte opaque data.booleanequals(java.lang.Object o)inthashCode()java.lang.Stringname()Returns the name of the HTTP/2 frame e.g.java.lang.StringtoString()
-
-
-
Method Detail
-
ack
public boolean ack()
Description copied from interface:Http2PingFrameWhentrue, indicates that this ping is a ping response.- Specified by:
ackin interfaceHttp2PingFrame
-
name
public java.lang.String name()
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
content
public long content()
Description copied from interface:Http2PingFrameReturns the eight byte opaque data.- Specified by:
contentin interfaceHttp2PingFrame
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-