Class RedirectHostUsage
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.RedirectHostUsage
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class RedirectHostUsage extends Object implements Serializable, Enumerated
Java class to represent the RedirectHostUsage enumerated type. Documentation from the relevant specification: The Redirect-Host-Usage AVP (AVP Code 261) is of type Enumerated. This AVP MAY be present in answer messages whose 'E' bit is set and the Result-Code AVP is set to DIAMETER_REDIRECT_INDICATION. When present, this AVP provides hints about how the routing entry resulting from the Redirect-Host is to be used. The following values are supported:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_ALL_APPLICATION
static int
_ALL_HOST
static int
_ALL_REALM
static int
_ALL_SESSION
static int
_ALL_USER
static int
_DONT_CACHE
static int
_REALM_AND_APPLICATION
static RedirectHostUsage
ALL_APPLICATION
All messages for the application requested SHOULD be sent to the host specified in the Redirect-Host AVP.static RedirectHostUsage
ALL_HOST
All messages that would be sent to the host that generated the Redirect-Host SHOULD be sent to the host specified in the Redirect-Host AVP.static RedirectHostUsage
ALL_REALM
All messages destined for the realm requested SHOULD be sent to the host specified in the Redirect-Host AVP.static RedirectHostUsage
ALL_SESSION
All messages within the same session, as defined by the same value of the Session-ID AVP SHOULD be sent to the host specified in the Redirect-Host AVP.static RedirectHostUsage
ALL_USER
All messages for the user requested SHOULD be sent to the host specified in the Redirect-Host AVP.static RedirectHostUsage
DONT_CACHE
The host specified in the Redirect-Host AVP SHOULD NOT be cached.static RedirectHostUsage
REALM_AND_APPLICATION
All messages for the application requested to the realm specified SHOULD be sent to the host specified in the Redirect-Host AVP.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedirectHostUsage
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_DONT_CACHE
public static final int _DONT_CACHE
- See Also:
- Constant Field Values
-
_ALL_SESSION
public static final int _ALL_SESSION
- See Also:
- Constant Field Values
-
_ALL_REALM
public static final int _ALL_REALM
- See Also:
- Constant Field Values
-
_REALM_AND_APPLICATION
public static final int _REALM_AND_APPLICATION
- See Also:
- Constant Field Values
-
_ALL_APPLICATION
public static final int _ALL_APPLICATION
- See Also:
- Constant Field Values
-
_ALL_HOST
public static final int _ALL_HOST
- See Also:
- Constant Field Values
-
_ALL_USER
public static final int _ALL_USER
- See Also:
- Constant Field Values
-
DONT_CACHE
public static final RedirectHostUsage DONT_CACHE
The host specified in the Redirect-Host AVP SHOULD NOT be cached. This is the default value.
-
ALL_SESSION
public static final RedirectHostUsage ALL_SESSION
All messages within the same session, as defined by the same value of the Session-ID AVP SHOULD be sent to the host specified in the Redirect-Host AVP.
-
ALL_REALM
public static final RedirectHostUsage ALL_REALM
All messages destined for the realm requested SHOULD be sent to the host specified in the Redirect-Host AVP.
-
REALM_AND_APPLICATION
public static final RedirectHostUsage REALM_AND_APPLICATION
All messages for the application requested to the realm specified SHOULD be sent to the host specified in the Redirect-Host AVP.
-
ALL_APPLICATION
public static final RedirectHostUsage ALL_APPLICATION
All messages for the application requested SHOULD be sent to the host specified in the Redirect-Host AVP.
-
ALL_HOST
public static final RedirectHostUsage ALL_HOST
All messages that would be sent to the host that generated the Redirect-Host SHOULD be sent to the host specified in the Redirect-Host AVP.
-
ALL_USER
public static final RedirectHostUsage ALL_USER
All messages for the user requested SHOULD be sent to the host specified in the Redirect-Host AVP. When multiple cached routes are created by redirect indications and they differ only in redirect usage and peers to forward requests to (see Section 6.1.8), a precedence rule MUST be applied to the redirect usage values of the cached routes during normal routing to resolve contentions that may occur. The precedence rule is the order that dictate which redirect usage should be considered before any other as they appear. The order is as follows: 1. ALL_SESSION 2. ALL_USER 3. REALM_AND_APPLICATION 4. ALL_REALM 5. ALL_APPLICATION 6. ALL_HOST
-
-
Method Detail
-
fromInt
public static RedirectHostUsage 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
-
-