public interface TerminalInformation extends GroupedAvp
7.3.3 Terminal-Information The Terminal-Information AVP is of type Grouped. This AVP shall contain the information about the user’s terminal. AVP format Terminal-Information ::= <AVP Header: 1401> [ IMEI ] [ TGPP2-MEID ] [ Software-Version ] *[ AVP ]
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
java.lang.String |
getImei()
Returns the value of the IMEI AVP, of type UTF8String.
|
java.lang.String |
getSoftwareVersion()
Returns the value of the Software-Version AVP, of type UTF8String.
|
byte[] |
getTgpp2Meid()
Returns the value of the TGPP2-MEID AVP, of type OctetString.
|
boolean |
hasImei()
Returns true if the IMEI AVP is present in the Terminal-Information AVP.
|
boolean |
hasSoftwareVersion()
Returns true if the Software-Version AVP is present in the Terminal-Information AVP.
|
boolean |
hasTgpp2Meid()
Returns true if the TGPP2-MEID AVP is present in the Terminal-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Terminal-Information AVP.
|
void |
removeImei()
Removes the IMEI AVP from the Terminal-Information AVP.
|
void |
removeSoftwareVersion()
Removes the Software-Version AVP from the Terminal-Information AVP.
|
void |
removeTgpp2Meid()
Removes the TGPP2-MEID AVP from the Terminal-Information AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setImei(java.lang.String imei)
Sets the value of the IMEI AVP, of type UTF8String.
|
void |
setSoftwareVersion(java.lang.String softwareVersion)
Sets the value of the Software-Version AVP, of type UTF8String.
|
void |
setTgpp2Meid(byte[] tgpp2Meid)
Sets the value of the TGPP2-MEID AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasImei()
java.lang.String getImei()
void setImei(java.lang.String imei)
java.lang.NullPointerException
- if imei
is null
.void removeImei()
boolean hasTgpp2Meid()
byte[] getTgpp2Meid()
void setTgpp2Meid(byte[] tgpp2Meid)
java.lang.NullPointerException
- if tgpp2Meid
is null
.void removeTgpp2Meid()
boolean hasSoftwareVersion()
java.lang.String getSoftwareVersion()
void setSoftwareVersion(java.lang.String softwareVersion)
java.lang.NullPointerException
- if softwareVersion
is null
.void removeSoftwareVersion()
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()