net.java.slee.resource.diameter.cca.events.avp
Enum CreditControlType
java.lang.Object
java.lang.Enum<CreditControlType>
net.java.slee.resource.diameter.cca.events.avp.CreditControlType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CreditControlType>, net.java.slee.resource.diameter.base.events.avp.Enumerated
public enum CreditControlType
- extends java.lang.Enum<CreditControlType>
- implements net.java.slee.resource.diameter.base.events.avp.Enumerated
8.13. Credit-Control AVP
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.
CREDIT_AUTHORIZATION 0
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 1
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.
- Author:
- Bartosz Baranowski , Alexandre Mendonca
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CREDIT_AUTHORIZATION
public static final CreditControlType CREDIT_AUTHORIZATION
RE_AUTHORIZATION
public static final CreditControlType RE_AUTHORIZATION
values
public static CreditControlType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CreditControlType c : CreditControlType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CreditControlType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getValue
public int getValue()
- Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated
fromInt
public CreditControlType fromInt(int type)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
Copyright © 2012. All Rights Reserved.