public static final class IcmpV4EchoPacket.Builder extends AbstractPacket.AbstractBuilder
Constructor and Description |
---|
IcmpV4EchoPacket.Builder() |
Modifier and Type | Method and Description |
---|---|
IcmpV4EchoPacket |
build()
Build a packet object using values set to this object.
|
Packet.Builder |
getPayloadBuilder()
Get the payload builder of this object.
|
IcmpV4EchoPacket.Builder |
identifier(short identifier) |
IcmpV4EchoPacket.Builder |
payloadBuilder(Packet.Builder payloadBuilder)
Set the payload builder.
|
IcmpV4EchoPacket.Builder |
sequenceNumber(short sequenceNumber) |
get, getOuterOf, iterator
public IcmpV4EchoPacket.Builder identifier(short identifier)
identifier
- identifierpublic IcmpV4EchoPacket.Builder sequenceNumber(short sequenceNumber)
sequenceNumber
- sequenceNumberpublic IcmpV4EchoPacket.Builder payloadBuilder(Packet.Builder payloadBuilder)
Packet.Builder
payloadBuilder
in interface Packet.Builder
payloadBuilder
in class AbstractPacket.AbstractBuilder
payloadBuilder
- a Builder object to setpublic Packet.Builder getPayloadBuilder()
Packet.Builder
getPayloadBuilder
in interface Packet.Builder
getPayloadBuilder
in class AbstractPacket.AbstractBuilder
public IcmpV4EchoPacket build()
Packet.Builder
build
in interface Packet.Builder
build
in class AbstractPacket.AbstractBuilder
Copyright © 2011–2016 Pcap4J.org. All rights reserved.