public interface OcSupportedFeatures extends GroupedAvp
7.1. OC-Supported-Features AVP The OC-Supported-Features AVP (AVP Code 621) is of type Grouped and serves two purposes. First, it announces a node's support for the DOIC solution in general. Second, it contains the description of the supported DOIC features of the sending node. The OC-Supported- Features AVP MUST be included in every Diameter request message a DOIC supporting node sends. OC-Supported-Features ::= < AVP Header: 621 > [ OC-Feature-Vector ] * [ AVP ] From RFC 7683
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getOcFeatureVector()
Returns the value of the OC-Feature-Vector AVP, of type Unsigned64.
|
boolean |
hasOcFeatureVector()
Returns true if the OC-Feature-Vector AVP is present in the OC-Supported-Features AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the OC-Supported-Features AVP.
|
void |
removeOcFeatureVector()
Removes the OC-Feature-Vector AVP from the OC-Supported-Features AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setOcFeatureVector(long ocFeatureVector)
Sets the value of the OC-Feature-Vector AVP, of type Unsigned64.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasOcFeatureVector()
long getOcFeatureVector()
hasOcFeatureVector()
to check the existence of this AVP.java.lang.IllegalStateException
- if the OC-Feature-Vector AVP has not been set.void setOcFeatureVector(long ocFeatureVector)
void removeOcFeatureVector()
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()