public interface LocationInfo extends GroupedAvp
7.2.95 A Location-Info AVP The Location-Info AVP (AVP code 3460) is of type Grouped and provides information on the location (i.e., ECGI) and associated time for the change to that location. It has the following ABNF grammar: Location-Info ::= < AVP Header: 3460> [ TGPP-User-Location-Info ] [ Change-Time ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getChangeTime()
Returns the value of the Change-Time AVP, of type Time.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
byte[] |
getTgppUserLocationInfo()
Returns the value of the TGPP-User-Location-Info AVP, of type OctetString.
|
boolean |
hasChangeTime()
Returns true if the Change-Time AVP is present in the Location-Info AVP.
|
boolean |
hasTgppUserLocationInfo()
Returns true if the TGPP-User-Location-Info AVP is present in the Location-Info AVP.
|
void |
removeChangeTime()
Removes the Change-Time AVP from the Location-Info AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Location-Info AVP.
|
void |
removeTgppUserLocationInfo()
Removes the TGPP-User-Location-Info AVP from the Location-Info AVP.
|
void |
setChangeTime(java.util.Date changeTime)
Sets the value of the Change-Time AVP, of type Time.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTgppUserLocationInfo(byte[] tgppUserLocationInfo)
Sets the value of the TGPP-User-Location-Info AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasTgppUserLocationInfo()
byte[] getTgppUserLocationInfo()
void setTgppUserLocationInfo(byte[] tgppUserLocationInfo)
java.lang.NullPointerException
- if tgppUserLocationInfo
is null
.void removeTgppUserLocationInfo()
boolean hasChangeTime()
java.util.Date getChangeTime()
void setChangeTime(java.util.Date changeTime)
java.lang.NullPointerException
- if changeTime
is null
.void removeChangeTime()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
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)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()