public interface AocSubscriptionInformation extends GroupedAvp
7.2.20 AoC-Subscription-Information AVP The AoC-Subscription-Information AVP (AVP code 2314) is of type Grouped and holds the subscription and formatting parameters received from HSS. It has the following ABNF grammar: AoC-Subscription-Information ::= < AVP Header: 2314 > * [ AoC-Service ] [ AoC-Format ] [ Preferred-AoC-Currency ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
AocFormat |
getAocFormat()
Returns the value of the AoC-Format AVP, of type Enumerated.
|
AocService[] |
getAocServices()
Returns the set of AoC-Service AVPs.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getPreferredAocCurrency()
Returns the value of the Preferred-AoC-Currency AVP, of type Unsigned32.
|
boolean |
hasAocFormat()
Returns true if the AoC-Format AVP is present in the AoC-Subscription-Information AVP.
|
boolean |
hasPreferredAocCurrency()
Returns true if the Preferred-AoC-Currency AVP is present in the AoC-Subscription-Information AVP.
|
void |
removeAocFormat()
Removes the AoC-Format AVP from the AoC-Subscription-Information AVP.
|
void |
removeAocServices()
Removes all AoC-Service AVPs from the AoC-Subscription-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the AoC-Subscription-Information AVP.
|
void |
removePreferredAocCurrency()
Removes the Preferred-AoC-Currency AVP from the AoC-Subscription-Information AVP.
|
void |
setAocFormat(AocFormat aocFormat)
Sets the value of the AoC-Format AVP, of type Enumerated.
|
void |
setAocService(AocService aocService)
Sets a single AoC-Service AVP in the AoC-Subscription-Information AVP, of type Grouped.
|
void |
setAocServices(AocService[] aocServices)
Sets the set of AoC-Service AVPs, with all the values in the given array.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setPreferredAocCurrency(long preferredAocCurrency)
Sets the value of the Preferred-AoC-Currency AVP, of type Unsigned32.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
AocService[] getAocServices()
void setAocService(AocService aocService)
java.lang.NullPointerException
- if aocService
is null
.void setAocServices(AocService[] aocServices)
java.lang.NullPointerException
- if aocServices
is null
.void removeAocServices()
boolean hasAocFormat()
AocFormat getAocFormat()
void setAocFormat(AocFormat aocFormat)
java.lang.NullPointerException
- if aocFormat
is null
.void removeAocFormat()
boolean hasPreferredAocCurrency()
long getPreferredAocCurrency()
hasPreferredAocCurrency()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Preferred-AoC-Currency AVP has not been set.void setPreferredAocCurrency(long preferredAocCurrency)
void removePreferredAocCurrency()
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()