public interface MessageClass extends GroupedAvp
7.2.59 Message-Class AVP The Message-Class AVP (AVP code 1213) is of type Grouped. It has the following ABNF grammar: Message-Class ::= < AVP Header: 1213 > [ Class-Identifier ] [ Token-Text ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
ClassIdentifier |
getClassIdentifier()
Returns the value of the Class-Identifier AVP, of type Enumerated.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
java.lang.String |
getTokenText()
Returns the value of the Token-Text AVP, of type UTF8String.
|
boolean |
hasClassIdentifier()
Returns true if the Class-Identifier AVP is present in the Message-Class AVP.
|
boolean |
hasTokenText()
Returns true if the Token-Text AVP is present in the Message-Class AVP.
|
void |
removeClassIdentifier()
Removes the Class-Identifier AVP from the Message-Class AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Message-Class AVP.
|
void |
removeTokenText()
Removes the Token-Text AVP from the Message-Class AVP.
|
void |
setClassIdentifier(ClassIdentifier classIdentifier)
Sets the value of the Class-Identifier AVP, of type Enumerated.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTokenText(java.lang.String tokenText)
Sets the value of the Token-Text AVP, of type UTF8String.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasClassIdentifier()
ClassIdentifier getClassIdentifier()
void setClassIdentifier(ClassIdentifier classIdentifier)
java.lang.NullPointerException
- if classIdentifier
is null
.void removeClassIdentifier()
boolean hasTokenText()
java.lang.String getTokenText()
void setTokenText(java.lang.String tokenText)
java.lang.NullPointerException
- if tokenText
is null
.void removeTokenText()
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()