- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.IcmpIdentifiablePacket
-
- Direct Known Subclasses:
IcmpV4EchoPacket,IcmpV4EchoReplyPacket,IcmpV4InformationReplyPacket,IcmpV4InformationRequestPacket,IcmpV4TimestampPacket,IcmpV4TimestampReplyPacket,IcmpV6EchoReplyPacket,IcmpV6EchoRequestPacket
abstract class IcmpIdentifiablePacket extends AbstractPacket
- Since:
- pcap4j 0.9.11
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classIcmpIdentifiablePacket.Builder(package private) static classIcmpIdentifiablePacket.IcmpIdentifiableHeader-
Nested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeader
-
Nested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Header
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedIcmpIdentifiablePacket()protectedIcmpIdentifiablePacket(IcmpIdentifiablePacket.Builder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract IcmpIdentifiablePacket.IcmpIdentifiableHeadergetHeader()Returns the Header object representing this packet's header.-
Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getBuilder, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IcmpIdentifiablePacket
protected IcmpIdentifiablePacket()
-
IcmpIdentifiablePacket
protected IcmpIdentifiablePacket(IcmpIdentifiablePacket.Builder builder)
-
-
Method Detail
-
getHeader
public abstract IcmpIdentifiablePacket.IcmpIdentifiableHeader getHeader()
Description copied from class:AbstractPacketReturns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.- Specified by:
getHeaderin interfacePacket- Overrides:
getHeaderin classAbstractPacket- Returns:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
-