Class CreditControl
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CreditControl
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class CreditControl extends Object implements Serializable, Enumerated
Java class to represent the CreditControl enumerated type. Documentation from the relevant specification: The Credit-Control AVP (AVP Code 426) is of type Enumerated and MUST be included in AA requests when the service element has credit- control capabilities.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_CREDIT_AUTHORIZATION
static int
_RE_AUTHORIZATION
static CreditControl
CREDIT_AUTHORIZATION
If the home Diameter AAA server determines that the user has prepaid subscription, this value indicates that the credit-control server MUST be contacted to perform the first interrogation.static CreditControl
RE_AUTHORIZATION
This value indicates to the Diameter AAA server that a credit- control session is ongoing for the subscriber and that the credit-control server MUST not be contacted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreditControl
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_CREDIT_AUTHORIZATION
public static final int _CREDIT_AUTHORIZATION
- See Also:
- Constant Field Values
-
_RE_AUTHORIZATION
public static final int _RE_AUTHORIZATION
- See Also:
- Constant Field Values
-
CREDIT_AUTHORIZATION
public static final CreditControl CREDIT_AUTHORIZATION
If the home Diameter AAA server determines that the user has prepaid subscription, this value indicates that the credit-control server MUST be contacted to perform the first interrogation. The value of the Credit-Control AVP MUST always be set to 0 in an AA request sent to perform the first interrogation and to initiate a new credit-control session.
-
RE_AUTHORIZATION
public static final CreditControl RE_AUTHORIZATION
This value indicates to the Diameter AAA server that a credit- control session is ongoing for the subscriber and that the credit-control server MUST not be contacted. The Credit-Control AVP set to the value of 1 is to be used only when the first interrogation has been successfully performed and the credit- control session is ongoing (i.e., re-authorization triggered by Authorization-Lifetime). This value MUST NOT be used in an AA request sent to perform the first interrogation.
-
-
Method Detail
-
fromInt
public static CreditControl fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-