Package org.pcap4j.packet
Class Dot11ProbeRequestPacket
- java.lang.Object
-
- org.pcap4j.packet.AbstractPacket
-
- org.pcap4j.packet.Dot11ManagementPacket
-
- org.pcap4j.packet.Dot11ProbeRequestPacket
-
public final class Dot11ProbeRequestPacket extends Dot11ManagementPacket
IEEE802.11 Probe Request- Since:
- pcap4j 1.7.0
- Author:
- Kaito Yamada
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dot11ProbeRequestPacket.Builder
static class
Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
Header of IEEE802.11 Probe Request-
Nested classes/interfaces inherited from class org.pcap4j.packet.Dot11ManagementPacket
Dot11ManagementPacket.Dot11ManagementHeader
-
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
-
-
Method Summary
Modifier and Type Method Description Dot11ProbeRequestPacket.Builder
getBuilder()
Returns a new Builder object populated with this object's fields' values.Dot11ProbeRequestPacket.Dot11ProbeRequestHeader
getHeader()
Returns the Header object representing this packet's header.static Dot11ProbeRequestPacket
newPacket(byte[] rawData, int offset, int length)
A static factory method.-
Methods inherited from class org.pcap4j.packet.Dot11ManagementPacket
buildRawData, buildString, calcLength, getFcs, hasValidFcs
-
Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, calcHashCode, equals, getPayload, getRawData, hashCode, length, toHexString, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.pcap4j.packet.Packet
contains, get, getLowerLayerOf, iterator
-
-
-
-
Method Detail
-
newPacket
public static Dot11ProbeRequestPacket newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.- Parameters:
rawData
- rawDataoffset
- offsetlength
- length- Returns:
- a new Dot11ProbeRequestPacket object.
- Throws:
IllegalRawDataException
- if parsing the raw data fails.
-
getHeader
public Dot11ProbeRequestPacket.Dot11ProbeRequestHeader getHeader()
Description copied from class:AbstractPacket
Returns 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:
getHeader
in interfacePacket
- Specified by:
getHeader
in classDot11ManagementPacket
- Returns:
- the Header object representing this packet's header. May be null if the header doesn't exist
-
getBuilder
public Dot11ProbeRequestPacket.Builder getBuilder()
Description copied from interface:Packet
Returns a new Builder object populated with this object's fields' values.- Specified by:
getBuilder
in interfacePacket
- Specified by:
getBuilder
in classDot11ManagementPacket
- Returns:
- a new Builder object populated with this object's fields values
-
-