net.java.slee.resource.diameter.cca.events.avp
Interface ServiceParameterInfoAvp

All Superinterfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp
All Known Implementing Classes:
ServiceParameterInfoAvpImpl

public interface ServiceParameterInfoAvp
extends net.java.slee.resource.diameter.base.events.avp.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 }
                                 

Author:
Bartosz Baranowski , Alexandre Mendonca

Field Summary
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Method Summary
 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 message.
 boolean hasServiceParameterValue()
          Returns true if the Service-Parameter-Value AVP is present in the message.
 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.
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 

Method Detail

getServiceParameterType

long getServiceParameterType()
Returns the value of the Service-Parameter-Type AVP, of type Unsigned32.

Returns:

getServiceParameterValue

byte[] getServiceParameterValue()
Returns the value of the Service-Parameter-Value AVP, of type OctetString.

Returns:

hasServiceParameterType

boolean hasServiceParameterType()
Returns true if the Service-Parameter-Type AVP is present in the message.

Returns:

hasServiceParameterValue

boolean hasServiceParameterValue()
Returns true if the Service-Parameter-Value AVP is present in the message.

Returns:

setServiceParameterType

void setServiceParameterType(long serviceParameterType)
Sets the value of the Service-Parameter-Type AVP, of type Unsigned32.

Parameters:
serviceParameterType -

setServiceParameterValue

void setServiceParameterValue(byte[] serviceParameterValue)
Sets the value of the Service-Parameter-Value AVP, of type OctetString.

Parameters:
serviceParameterValue -


Copyright © 2012. All Rights Reserved.