Class CcRequestType
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CcRequestType
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class CcRequestType extends Object implements Serializable, Enumerated
Java class to represent the CcRequestType enumerated type. Documentation from the relevant specification: The CC-Request-Type AVP (AVP Code 416) is of type Enumerated and contains the reason for sending the credit-control request message. It MUST be present in all Credit-Control-Request messages.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_EVENT_REQUEST
static int
_INITIAL_REQUEST
static int
_TERMINATION_REQUEST
static int
_UPDATE_REQUEST
static CcRequestType
EVENT_REQUEST
An Event request is used when there is no need to maintain any credit-control session state in the credit-control server.static CcRequestType
INITIAL_REQUEST
An Initial request is used to initiate a credit-control session, and contains credit control information that is relevant to the initiation.static CcRequestType
TERMINATION_REQUEST
A Termination request is sent to terminate a credit-control session and contains credit-control information relevant to the existing session.static CcRequestType
UPDATE_REQUEST
An Update request contains credit-control information for an existing credit-control session.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CcRequestType
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_INITIAL_REQUEST
public static final int _INITIAL_REQUEST
- See Also:
- Constant Field Values
-
_UPDATE_REQUEST
public static final int _UPDATE_REQUEST
- See Also:
- Constant Field Values
-
_TERMINATION_REQUEST
public static final int _TERMINATION_REQUEST
- See Also:
- Constant Field Values
-
_EVENT_REQUEST
public static final int _EVENT_REQUEST
- See Also:
- Constant Field Values
-
INITIAL_REQUEST
public static final CcRequestType INITIAL_REQUEST
An Initial request is used to initiate a credit-control session, and contains credit control information that is relevant to the initiation.
-
UPDATE_REQUEST
public static final CcRequestType UPDATE_REQUEST
An Update request contains credit-control information for an existing credit-control session. Update credit-control requests SHOULD be sent every time a credit-control re-authorization is needed at the expiry of the allocated quota or validity time. Further, additional service-specific events MAY trigger a spontaneous Update request.
-
TERMINATION_REQUEST
public static final CcRequestType TERMINATION_REQUEST
A Termination request is sent to terminate a credit-control session and contains credit-control information relevant to the existing session.
-
EVENT_REQUEST
public static final CcRequestType EVENT_REQUEST
An Event request is used when there is no need to maintain any credit-control session state in the credit-control server. This request contains all information relevant to the service, and is the only request of the service. The reason for the Event request is further detailed in the Requested-Action AVP. The Requested- Action AVP MUST be included in the Credit-Control-Request message when CC-Request-Type is set to EVENT_REQUEST.
-
-
Method Detail
-
fromInt
public static CcRequestType 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
-
-