public interface ServiceParameterInfo extends GroupedAvp
8.43. Service-Parameter-Info AVP The Service-Parameter-Info AVP (AVP Code 440) is of type Grouped and contains service-specific information used for price calculation or rating. The Service-Parameter-Type AVP defines the service parameter type, and the Service-Parameter-Value AVP contains the parameter value. The actual contents of these AVPs are not within the scope of this document and SHOULD be defined in another Diameter application, in standards written by other standardization bodies, or in service- specific documentation. In the case of an unknown service request (e.g., unknown Service- Parameter-Type), the corresponding answer message MUST contain the error code DIAMETER_RATING_FAILED. A Credit-Control-Answer message with this error MUST contain one or more Failed-AVP AVPs containing the Service-Parameter-Info AVPs that caused the failure. It is defined as follows (per the grouped-avp-def of RFC 3588 [DIAMBASE]): Service-Parameter-Info ::= < AVP Header: 440 > { Service-Parameter-Type } { Service-Parameter-Value }Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
long |
getServiceParameterType()
Returns the value of the Service-Parameter-Type AVP, of type Unsigned32.
|
byte[] |
getServiceParameterValue()
Returns the value of the Service-Parameter-Value AVP, of type OctetString.
|
boolean |
hasServiceParameterType()
Returns true if the Service-Parameter-Type AVP is present in the Service-Parameter-Info AVP.
|
boolean |
hasServiceParameterValue()
Returns true if the Service-Parameter-Value AVP is present in the Service-Parameter-Info AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Service-Parameter-Info AVP.
|
void |
removeServiceParameterType()
Removes the Service-Parameter-Type AVP from the Service-Parameter-Info AVP.
|
void |
removeServiceParameterValue()
Removes the Service-Parameter-Value AVP from the Service-Parameter-Info AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setServiceParameterType(long serviceParameterType)
Sets the value of the Service-Parameter-Type AVP, of type Unsigned32.
|
void |
setServiceParameterValue(byte[] serviceParameterValue)
Sets the value of the Service-Parameter-Value AVP, of type OctetString.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasServiceParameterType()
long getServiceParameterType()
hasServiceParameterType()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Service-Parameter-Type AVP has not been set.void setServiceParameterType(long serviceParameterType)
void removeServiceParameterType()
boolean hasServiceParameterValue()
byte[] getServiceParameterValue()
void setServiceParameterValue(byte[] serviceParameterValue)
java.lang.NullPointerException
- if serviceParameterValue
is null
.void removeServiceParameterValue()
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()