Interface WlanRadioContainer
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface WlanRadioContainer extends GroupedAvp
Defines an interface representing the WLAN-Radio-Container grouped AVP type. From the Diameter Ro Reference Point Protocol Details (3GPP TS 32.299 V9.6.0) specification:7.2.247 WLAN-Radio-Container AVP The WLAN-Radio-Container AVP (AVP code 892) is of type Grouped. The WLAN- Radio-Container AVP has the following format: The Operator-Name, Location-Type and Location-Information AVPs are defined in TS 29.234 [212]. WLAN-Radio-Container ::= < AVP Header: 892> [ Operator-Name ] #exclude [ Location-Type ] [ Location-Information ] #exclude [ WLAN-Technology ]
Note:
The support for extension AVPs is present even thou the ABNF grammar for this AVP does not contain the "* [ AVP ]" line. Be aware that adding any extension AVPs may result in interoperability problems with products that strongly validate the incoming diameter message for it's adherence to the specification.
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.LocationType
getLocationType()
Returns the value of the Location-Type AVP, of type Grouped.long
getWlanTechnology()
Returns the value of the WLAN-Technology AVP, of type Unsigned32.boolean
hasLocationType()
Returns true if the Location-Type AVP is present in the WLAN-Radio-Container AVP.boolean
hasWlanTechnology()
Returns true if the WLAN-Technology AVP is present in the WLAN-Radio-Container AVP.void
removeExtensionAvps()
Removes all extension AVPs from the WLAN-Radio-Container AVP.void
removeLocationType()
Removes the Location-Type AVP from the WLAN-Radio-Container AVP.void
removeWlanTechnology()
Removes the WLAN-Technology AVP from the WLAN-Radio-Container AVP.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setLocationType(LocationType locationType)
Sets the value of the Location-Type AVP, of type Grouped.void
setWlanTechnology(long wlanTechnology)
Sets the value of the WLAN-Technology AVP, of type Unsigned32.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasLocationType
boolean hasLocationType()
Returns true if the Location-Type AVP is present in the WLAN-Radio-Container AVP.
-
getLocationType
LocationType getLocationType()
Returns the value of the Location-Type AVP, of type Grouped.- Returns:
- the value of the Location-Type AVP, or null if it has not been set.
-
setLocationType
void setLocationType(LocationType locationType)
Sets the value of the Location-Type AVP, of type Grouped.- Throws:
NullPointerException
- iflocationType
isnull
.
-
removeLocationType
void removeLocationType()
Removes the Location-Type AVP from the WLAN-Radio-Container AVP. If the Location-Type AVP is not present, this method returns silently.
-
hasWlanTechnology
boolean hasWlanTechnology()
Returns true if the WLAN-Technology AVP is present in the WLAN-Radio-Container AVP.
-
getWlanTechnology
long getWlanTechnology()
Returns the value of the WLAN-Technology AVP, of type Unsigned32. UsehasWlanTechnology()
to check the existence of this AVP.- Returns:
- the value of the WLAN-Technology AVP
- Throws:
IllegalStateException
- if the WLAN-Technology AVP has not been set.
-
setWlanTechnology
void setWlanTechnology(long wlanTechnology)
Sets the value of the WLAN-Technology AVP, of type Unsigned32.
-
removeWlanTechnology
void removeWlanTechnology()
Removes the WLAN-Technology AVP from the WLAN-Radio-Container AVP. If the WLAN-Technology AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the WLAN-Radio-Container AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to WLAN-Radio-Container AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class (i.e. an AVP for which get/set methods already appear in this class)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the WLAN-Radio-Container AVP. If no extension AVPs are present, this method returns silently.
-
-