Class TerminationCause
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.TerminationCause
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class TerminationCause extends Object implements Serializable, Enumerated
Java class to represent the TerminationCause enumerated type. Documentation from the relevant specification: The Termination-Cause AVP (AVP Code 295) is of type Enumerated, and is used to indicate the reason why a session was terminated on the access device.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_DIAMETER_ADMINISTRATIVE
static int
_DIAMETER_AUTH_EXPIRED
static int
_DIAMETER_BAD_ANSWER
static int
_DIAMETER_LINK_BROKEN
static int
_DIAMETER_LOGOUT
static int
_DIAMETER_SERVICE_NOT_PROVIDED
static int
_DIAMETER_SESSION_TIMEOUT
static int
_DIAMETER_USER_MOVED
static TerminationCause
DIAMETER_ADMINISTRATIVE
The user was not granted access, or was disconnected, due to administrative reasons, such as the receipt of a Abort-Session- Request message.static TerminationCause
DIAMETER_AUTH_EXPIRED
The user's access was terminated since its authorized session time has expired.static TerminationCause
DIAMETER_BAD_ANSWER
This value indicates that the authorization answer received by the access device was not processed successfully.static TerminationCause
DIAMETER_LINK_BROKEN
The communication to the user was abruptly disconnected.static TerminationCause
DIAMETER_LOGOUT
The user initiated a disconnectstatic TerminationCause
DIAMETER_SERVICE_NOT_PROVIDED
This value is used when the user disconnected prior to the receipt of the authorization answer message.static TerminationCause
DIAMETER_SESSION_TIMEOUT
The user's session has timed out, and service has been terminated.static TerminationCause
DIAMETER_USER_MOVED
The user is receiving services from another access device.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TerminationCause
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_DIAMETER_LOGOUT
public static final int _DIAMETER_LOGOUT
- See Also:
- Constant Field Values
-
_DIAMETER_SERVICE_NOT_PROVIDED
public static final int _DIAMETER_SERVICE_NOT_PROVIDED
- See Also:
- Constant Field Values
-
_DIAMETER_BAD_ANSWER
public static final int _DIAMETER_BAD_ANSWER
- See Also:
- Constant Field Values
-
_DIAMETER_ADMINISTRATIVE
public static final int _DIAMETER_ADMINISTRATIVE
- See Also:
- Constant Field Values
-
_DIAMETER_LINK_BROKEN
public static final int _DIAMETER_LINK_BROKEN
- See Also:
- Constant Field Values
-
_DIAMETER_AUTH_EXPIRED
public static final int _DIAMETER_AUTH_EXPIRED
- See Also:
- Constant Field Values
-
_DIAMETER_USER_MOVED
public static final int _DIAMETER_USER_MOVED
- See Also:
- Constant Field Values
-
_DIAMETER_SESSION_TIMEOUT
public static final int _DIAMETER_SESSION_TIMEOUT
- See Also:
- Constant Field Values
-
DIAMETER_LOGOUT
public static final TerminationCause DIAMETER_LOGOUT
The user initiated a disconnect
-
DIAMETER_SERVICE_NOT_PROVIDED
public static final TerminationCause DIAMETER_SERVICE_NOT_PROVIDED
This value is used when the user disconnected prior to the receipt of the authorization answer message.
-
DIAMETER_BAD_ANSWER
public static final TerminationCause DIAMETER_BAD_ANSWER
This value indicates that the authorization answer received by the access device was not processed successfully.
-
DIAMETER_ADMINISTRATIVE
public static final TerminationCause DIAMETER_ADMINISTRATIVE
The user was not granted access, or was disconnected, due to administrative reasons, such as the receipt of a Abort-Session- Request message.
-
DIAMETER_LINK_BROKEN
public static final TerminationCause DIAMETER_LINK_BROKEN
The communication to the user was abruptly disconnected.
-
DIAMETER_AUTH_EXPIRED
public static final TerminationCause DIAMETER_AUTH_EXPIRED
The user's access was terminated since its authorized session time has expired.
-
DIAMETER_USER_MOVED
public static final TerminationCause DIAMETER_USER_MOVED
The user is receiving services from another access device.
-
DIAMETER_SESSION_TIMEOUT
public static final TerminationCause DIAMETER_SESSION_TIMEOUT
The user's session has timed out, and service has been terminated.
-
-
Method Detail
-
fromInt
public static TerminationCause 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
-
-