Class FinalUnitAction
- java.lang.Object
-
- org.jainslee.resources.diameter.gx.types.vcd0.FinalUnitAction
-
- All Implemented Interfaces:
Serializable,Enumerated
public class FinalUnitAction extends Object implements Serializable, Enumerated
Java class to represent the FinalUnitAction enumerated type. Documentation from the relevant specification: The Final-Unit-Action AVP (AVP Code 449) is of type Enumerated and indicates to the credit-control client the action to be taken when the user's account cannot cover the service cost.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int_REDIRECTstatic int_RESTRICT_ACCESSstatic int_TERMINATEstatic FinalUnitActionREDIRECTThe service element MUST redirect the user to the address specified in the Redirect-Server-Address AVP.static FinalUnitActionRESTRICT_ACCESSThe access device MUST restrict the user access according to the IP packet filters defined in the Restriction-Filter-Rule AVP or according to the IP packet filters identified by the Filter-Id AVP.static FinalUnitActionTERMINATEThe credit-control client MUST terminate the service session.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FinalUnitActionfromInt(int type)intgetValue()Return the value of this instance of this enumerated type.StringtoString()
-
-
-
Field Detail
-
_TERMINATE
public static final int _TERMINATE
- See Also:
- Constant Field Values
-
_REDIRECT
public static final int _REDIRECT
- See Also:
- Constant Field Values
-
_RESTRICT_ACCESS
public static final int _RESTRICT_ACCESS
- See Also:
- Constant Field Values
-
TERMINATE
public static final FinalUnitAction TERMINATE
The credit-control client MUST terminate the service session. This is the default handling, applicable whenever the credit- control client receives an unsupported Final-Unit-Action value, and it MUST be supported by all the Diameter credit-control client implementations conforming to this specification.
-
REDIRECT
public static final FinalUnitAction REDIRECT
The service element MUST redirect the user to the address specified in the Redirect-Server-Address AVP. The redirect action is defined in section 5.6.2.
-
RESTRICT_ACCESS
public static final FinalUnitAction RESTRICT_ACCESS
The access device MUST restrict the user access according to the IP packet filters defined in the Restriction-Filter-Rule AVP or according to the IP packet filters identified by the Filter-Id AVP. All the packets not matching the filters MUST be dropped (see section 5.6.3).
-
-
Method Detail
-
fromInt
public static FinalUnitAction fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:EnumeratedReturn the value of this instance of this enumerated type.- Specified by:
getValuein interfaceEnumerated- Returns:
- value
-
-