- java.lang.Object
-
- org.pcap4j.packet.Dot11InformationElement
-
- org.pcap4j.packet.Dot11SsidListElement
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11SsidListElement extends Dot11InformationElement
IEEE802.11 SSID List element1 1 variable +----------+----------+------------- |Element ID| Length | SSID List +----------+----------+------------- Element ID: 84The SSID List field is a list of SSID elements, each including the element ID, length field and SSID information field for which the STA is requesting information.- Since:
- pcap4j 1.7.0
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11SsidListElement.Builder
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDprivate java.util.List<Dot11SsidElement>ssidList
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11SsidListElement(byte[] rawData, int offset, int length)privateDot11SsidListElement(Dot11SsidListElement.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Dot11SsidListElement.BuildergetBuilder()byte[]getRawData()java.util.List<Dot11SsidElement>getSsidList()inthashCode()intlength()static Dot11SsidListElementnewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)-
Methods inherited from class org.pcap4j.packet.Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ssidList
private final java.util.List<Dot11SsidElement> ssidList
-
-
Constructor Detail
-
Dot11SsidListElement
private Dot11SsidListElement(byte[] rawData, int offset, int length) throws IllegalRawDataException- Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11SsidListElement
private Dot11SsidListElement(Dot11SsidListElement.Builder builder)
- Parameters:
builder- builder
-
-
Method Detail
-
newInstance
public static Dot11SsidListElement newInstance(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 Dot11SsidListElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getSsidList
public java.util.List<Dot11SsidElement> getSsidList()
- Returns:
- ssidList
-
length
public int length()
- Specified by:
lengthin classDot11InformationElement- Returns:
- the length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain classDot11InformationElement- Returns:
- the raw data.
-
getBuilder
public Dot11SsidListElement.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDot11InformationElement
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classDot11InformationElement
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Parameters:
indent- indent- Returns:
- the string representation of this object.
-
-