Class SessionServerFailover
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.SessionServerFailover
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class SessionServerFailover extends Object implements Serializable, Enumerated
Java class to represent the SessionServerFailover enumerated type. Documentation from the relevant specification: The Session-Server-Failover AVP (AVP Code 271) is of type Enumerated and MAY be present in application-specific authorization answer messages that either do not include the Session-Binding AVP or include the Session-Binding AVP with any of the bits set to a zero value. If present, this AVP MAY inform the Diameter client that if a re-auth or STR message fails due to a delivery problem, the Diameter client SHOULD issue a subsequent message without the Destination-Host AVP. When absent, the default value is REFUSE_SERVICE. The following values are supported:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_ALLOW_SERVICE
static int
_REFUSE_SERVICE
static int
_TRY_AGAIN
static int
_TRY_AGAIN_ALLOW_SERVICE
static SessionServerFailover
ALLOW_SERVICE
If re-auth message delivery fails, assume that re-authorization succeeded.static SessionServerFailover
REFUSE_SERVICE
If either the re-auth or the STR message delivery fails, terminate service with the user and do not attempt any subsequent attempts.static SessionServerFailover
TRY_AGAIN
If either the re-auth or the STR message delivery fails, resend the failed message without the Destination-Host AVP present.static SessionServerFailover
TRY_AGAIN_ALLOW_SERVICE
If either the re-auth or the STR message delivery fails, resend the failed message without the Destination-Host AVP present.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionServerFailover
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_REFUSE_SERVICE
public static final int _REFUSE_SERVICE
- See Also:
- Constant Field Values
-
_TRY_AGAIN
public static final int _TRY_AGAIN
- See Also:
- Constant Field Values
-
_ALLOW_SERVICE
public static final int _ALLOW_SERVICE
- See Also:
- Constant Field Values
-
_TRY_AGAIN_ALLOW_SERVICE
public static final int _TRY_AGAIN_ALLOW_SERVICE
- See Also:
- Constant Field Values
-
REFUSE_SERVICE
public static final SessionServerFailover REFUSE_SERVICE
If either the re-auth or the STR message delivery fails, terminate service with the user and do not attempt any subsequent attempts.
-
TRY_AGAIN
public static final SessionServerFailover TRY_AGAIN
If either the re-auth or the STR message delivery fails, resend the failed message without the Destination-Host AVP present.
-
ALLOW_SERVICE
public static final SessionServerFailover ALLOW_SERVICE
If re-auth message delivery fails, assume that re-authorization succeeded. If STR message delivery fails, terminate the session.
-
TRY_AGAIN_ALLOW_SERVICE
public static final SessionServerFailover TRY_AGAIN_ALLOW_SERVICE
If either the re-auth or the STR message delivery fails, resend the failed message without the Destination-Host AVP present. If the second delivery fails for re-auth, assume re-authorization succeeded. If the second delivery fails for STR, terminate the session.
-
-
Method Detail
-
fromInt
public static SessionServerFailover 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
-
-