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 defaultHttp2PingFrame
implementation.
-
-
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 boolean
ack()
Whentrue
, indicates that this ping is a ping response.long
content()
Returns the eight byte opaque data.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
name()
Returns the name of the HTTP/2 frame e.g.java.lang.String
toString()
-
-
-
Method Detail
-
ack
public boolean ack()
Description copied from interface:Http2PingFrame
Whentrue
, indicates that this ping is a ping response.- Specified by:
ack
in interfaceHttp2PingFrame
-
name
public java.lang.String name()
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
content
public long content()
Description copied from interface:Http2PingFrame
Returns the eight byte opaque data.- Specified by:
content
in interfaceHttp2PingFrame
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-