- java.lang.Object
-
- org.pcap4j.packet.Dot11InformationElement
-
- org.pcap4j.packet.Dot11InterworkingElement
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11InterworkingElement extends Dot11InformationElement
IEEE802.11 Interworking element1 1 1 0 or 2 0 or 6 +--------------+--------------+--------------+--------------+--------------+ | Element ID | Length |Access Network| Venue Info | HESSID | | | |Options | (optional) | (optional) | +--------------+--------------+--------------+--------------+--------------+ Element ID: 107 Access Network Options field: B0 B1 B2 B3 B4 B5 B6 B7 +--------+--------+--------+--------+--------+--------+--------+--------+ | Access Network Type |Internet| ASRA | ESR | UESA | +--------+--------+--------+--------+--------+--------+--------+--------+The Interworking element contains information about the interworking service capabilities of a STA.- Since:
- pcap4j 1.7.0
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11InterworkingElement.Builder
-
Field Summary
Fields Modifier and Type Field Description private Dot11AccessNetworkTypeaccessnetworkTypeprivate booleanasraprivate booleanesrprivate byte[]hessidprivate booleaninternetprivate static longserialVersionUIDprivate booleanuesaprivate Dot11VenueInfovenueInfo
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11InterworkingElement(byte[] rawData, int offset, int length)privateDot11InterworkingElement(Dot11InterworkingElement.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Dot11AccessNetworkTypegetAccessnetworkType()Dot11InterworkingElement.BuildergetBuilder()byte[]getHessid()byte[]getRawData()Dot11VenueInfogetVenueInfo()inthashCode()booleanisAsra()booleanisEsr()booleanisInternetAccessible()booleanisUesa()intlength()static Dot11InterworkingElementnewInstance(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
-
accessnetworkType
private final Dot11AccessNetworkType accessnetworkType
-
internet
private final boolean internet
-
asra
private final boolean asra
-
esr
private final boolean esr
-
uesa
private final boolean uesa
-
venueInfo
private final Dot11VenueInfo venueInfo
-
hessid
private final byte[] hessid
-
-
Constructor Detail
-
Dot11InterworkingElement
private Dot11InterworkingElement(byte[] rawData, int offset, int length) throws IllegalRawDataException- Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11InterworkingElement
private Dot11InterworkingElement(Dot11InterworkingElement.Builder builder)
- Parameters:
builder- builder
-
-
Method Detail
-
newInstance
public static Dot11InterworkingElement 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 Dot11InterworkingElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getAccessnetworkType
public Dot11AccessNetworkType getAccessnetworkType()
- Returns:
- accessnetworkType
-
isInternetAccessible
public boolean isInternetAccessible()
- Returns:
- true if the internet field is set to 1; false otherwise.
-
isAsra
public boolean isAsra()
- Returns:
- true if the ASRA field is set to 1; false otherwise.
-
isEsr
public boolean isEsr()
- Returns:
- true if the ESR field is set to 1; false otherwise.
-
isUesa
public boolean isUesa()
- Returns:
- true if the UESA field is set to 1; false otherwise.
-
getVenueInfo
public Dot11VenueInfo getVenueInfo()
- Returns:
- venueInfo. May be null.
-
getHessid
public byte[] getHessid()
- Returns:
- hessid. May be null.
-
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 Dot11InterworkingElement.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.
-
-