public interface AccessNetworkChargingIdentifierGx extends GroupedAvp
5.3.22 Access-Network-Charging-Identifier-Gx The Access-Network-Charging-Identifier-Gx AVP (AVP code 1022) is of type Grouped. It contains a charging identifier (e.g. GCID) within the Access-Network-Charging-Identifier-Value AVP and the related PCC rule name(s) within the Charging-Rule-Name AVP(s) and/or within the Charging-Rule-Base-Name AVP(s). If the IP CAN session contains only a single IP CAN bearer, no Charging-Rule-Name AVPs or Charging-Rule-Base-Name AVPs need to be provided. Otherwise, all the Charging-Rule-Name AVPs or Charging-Rule-Base-Name AVPs corresponding to PCC rules activated or installed within the IP CAN bearer corresponding to the provided Access-Network-Charging-Identifier-Value shall be included. The Access-Network-Charging-Identifier-Gx AVP can be sent from the PCEF to the PCRF. The PCRF may use this information for charging correlation towards the AF. It has the following ABNF grammar: Access-Network-Charging-Identifier-Gx ::= < AVP Header: 1022 > { Access-Network-Charging-Identifier-Value} *[ Charging-Rule-Base-Name ] *[ Charging-Rule-Name ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
byte[] |
getAccessNetworkChargingIdentifierValue()
Returns the value of the Access-Network-Charging-Identifier-Value AVP, of type OctetString.
|
java.lang.String[] |
getChargingRuleBaseNames()
Returns the set of Charging-Rule-Base-Name AVPs.
|
byte[][] |
getChargingRuleNames()
Returns the set of Charging-Rule-Name AVPs.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
boolean |
hasAccessNetworkChargingIdentifierValue()
Returns true if the Access-Network-Charging-Identifier-Value AVP is present in the Access-Network-Charging-Identifier-Gx AVP.
|
void |
removeAccessNetworkChargingIdentifierValue()
Removes the Access-Network-Charging-Identifier-Value AVP from the Access-Network-Charging-Identifier-Gx AVP.
|
void |
removeChargingRuleBaseNames()
Removes all Charging-Rule-Base-Name AVPs from the Access-Network-Charging-Identifier-Gx AVP.
|
void |
removeChargingRuleNames()
Removes all Charging-Rule-Name AVPs from the Access-Network-Charging-Identifier-Gx AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Access-Network-Charging-Identifier-Gx AVP.
|
void |
setAccessNetworkChargingIdentifierValue(byte[] accessNetworkChargingIdentifierValue)
Sets the value of the Access-Network-Charging-Identifier-Value AVP, of type OctetString.
|
void |
setChargingRuleBaseName(java.lang.String chargingRuleBaseName)
Sets a single Charging-Rule-Base-Name AVP in the Access-Network-Charging-Identifier-Gx AVP, of type UTF8String.
|
void |
setChargingRuleBaseNames(java.lang.String[] chargingRuleBaseNames)
Sets the set of Charging-Rule-Base-Name AVPs, with all the values in the given array.
|
void |
setChargingRuleName(byte[] chargingRuleName)
Sets a single Charging-Rule-Name AVP in the Access-Network-Charging-Identifier-Gx AVP, of type OctetString.
|
void |
setChargingRuleNames(byte[][] chargingRuleNames)
Sets the set of Charging-Rule-Name 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.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasAccessNetworkChargingIdentifierValue()
byte[] getAccessNetworkChargingIdentifierValue()
void setAccessNetworkChargingIdentifierValue(byte[] accessNetworkChargingIdentifierValue)
java.lang.NullPointerException
- if accessNetworkChargingIdentifierValue
is null
.void removeAccessNetworkChargingIdentifierValue()
java.lang.String[] getChargingRuleBaseNames()
void setChargingRuleBaseName(java.lang.String chargingRuleBaseName)
java.lang.NullPointerException
- if chargingRuleBaseName
is null
.void setChargingRuleBaseNames(java.lang.String[] chargingRuleBaseNames)
java.lang.NullPointerException
- if chargingRuleBaseNames
is null
.void removeChargingRuleBaseNames()
byte[][] getChargingRuleNames()
void setChargingRuleName(byte[] chargingRuleName)
java.lang.NullPointerException
- if chargingRuleName
is null
.void setChargingRuleNames(byte[][] chargingRuleNames)
java.lang.NullPointerException
- if chargingRuleNames
is null
.void removeChargingRuleNames()
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()