public interface SupportedFeatures extends GroupedAvp
6.3.29 Supported-Features The Supported-Features AVP is of type Grouped. If this AVP is present it may inform the destination host about the features that the origin host supports. The Feature-List AVP contains a list of supported features of the origin host. The Vendor-ID AVP and the Feature-List AVP shall together identify which feature list is carried in the Supported-Features AVP. Where a Supported-Features AVP is used to identify features that have been defined by 3GPP, the Vendor-ID AVP shall contain the vendor ID of 3GPP. Vendors may define proprietary features, but it is strongly recommended that the possibility is used only as the last resort. Where the Supported-Features AVP is used to identify features that have been defined by a vendor other than 3GPP, it shall contain the vendor ID of the specific vendor in question. If there are multiple feature lists defined by the same vendor, the Feature-List-ID AVP shall differentiate those lists from one another. The destination host shall use the value of the Feature-List-ID AVP to identify the feature list. AVP format: Supported-Features ::= < AVP Header: 628 10415 > { Vendor-Id } { Feature-List-ID } { Feature-List } *[AVP] From Cx and Dx interfaces based on the Diameter protocol (3GPP TS 29.229 V12.8.0 Release 12)
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getFeatureList()
Returns the value of the Feature-List AVP, of type Unsigned32.
|
long |
getFeatureListId()
Returns the value of the Feature-List-ID AVP, of type Unsigned32.
|
long |
getVendorId()
Returns the value of the Vendor-Id AVP, of type Unsigned32.
|
boolean |
hasFeatureList()
Returns true if the Feature-List AVP is present in the Supported-Features AVP.
|
boolean |
hasFeatureListId()
Returns true if the Feature-List-ID AVP is present in the Supported-Features AVP.
|
boolean |
hasVendorId()
Returns true if the Vendor-Id AVP is present in the Supported-Features AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Supported-Features AVP.
|
void |
removeFeatureList()
Removes the Feature-List AVP from the Supported-Features AVP.
|
void |
removeFeatureListId()
Removes the Feature-List-ID AVP from the Supported-Features AVP.
|
void |
removeVendorId()
Removes the Vendor-Id AVP from the Supported-Features AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setFeatureList(long featureList)
Sets the value of the Feature-List AVP, of type Unsigned32.
|
void |
setFeatureListId(long featureListId)
Sets the value of the Feature-List-ID AVP, of type Unsigned32.
|
void |
setVendorId(long vendorId)
Sets the value of the Vendor-Id AVP, of type Unsigned32.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasVendorId()
long getVendorId()
hasVendorId()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Vendor-Id AVP has not been set.void setVendorId(long vendorId)
void removeVendorId()
boolean hasFeatureListId()
long getFeatureListId()
hasFeatureListId()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Feature-List-ID AVP has not been set.void setFeatureListId(long featureListId)
void removeFeatureListId()
boolean hasFeatureList()
long getFeatureList()
hasFeatureList()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Feature-List AVP has not been set.void setFeatureList(long featureList)
void removeFeatureList()
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()