net.java.slee.resource.diameter.base.events.avp
Class RedirectHostUsageType

java.lang.Object
  extended by net.java.slee.resource.diameter.base.events.avp.RedirectHostUsageType
All Implemented Interfaces:
java.io.Serializable, Enumerated

public class RedirectHostUsageType
extends java.lang.Object
implements java.io.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 dictates how the routing entry resulting from the Redirect-Host is to be used.

Author:
Open Cloud
See Also:
Serialized Form

Field Summary
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 RedirectHostUsageType ALL_APPLICATION
          All messages for the application requested MAY be sent to the host specified in the Redirect-Host AVP.
static RedirectHostUsageType ALL_HOST
          All messages that would be sent to the host that generated the Redirect-Host MAY be sent to the host specified in the Redirect- Host AVP.
static RedirectHostUsageType ALL_REALM
          All messages destined for the realm requested MAY be sent to the host specified in the Redirect-Host AVP.
static RedirectHostUsageType ALL_SESSION
          All messages within the same session, as defined by the same value of the Session-ID AVP MAY be sent to the host specified in the Redirect-Host AVP.
static RedirectHostUsageType ALL_USER
          All messages for the user requested MAY be sent to the host specified in the Redirect-Host AVP.
static RedirectHostUsageType DONT_CACHE
          The host specified in the Redirect-Host AVP should not be cached.
static RedirectHostUsageType REALM_AND_APPLICATION
          All messages for the application requested to the realm specified MAY be sent to the host specified in the Redirect-Host AVP.
 
Method Summary
static RedirectHostUsageType fromInt(int type)
           
 int getValue()
          Return the value of this instance of this enumerated type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 RedirectHostUsageType DONT_CACHE
The host specified in the Redirect-Host AVP should not be cached. This is the default value.


ALL_SESSION

public static final RedirectHostUsageType ALL_SESSION
All messages within the same session, as defined by the same value of the Session-ID AVP MAY be sent to the host specified in the Redirect-Host AVP.


ALL_REALM

public static final RedirectHostUsageType ALL_REALM
All messages destined for the realm requested MAY be sent to the host specified in the Redirect-Host AVP.


REALM_AND_APPLICATION

public static final RedirectHostUsageType REALM_AND_APPLICATION
All messages for the application requested to the realm specified MAY be sent to the host specified in the Redirect-Host AVP.


ALL_APPLICATION

public static final RedirectHostUsageType ALL_APPLICATION
All messages for the application requested MAY be sent to the host specified in the Redirect-Host AVP.


ALL_HOST

public static final RedirectHostUsageType ALL_HOST
All messages that would be sent to the host that generated the Redirect-Host MAY be sent to the host specified in the Redirect- Host AVP.


ALL_USER

public static final RedirectHostUsageType ALL_USER
All messages for the user requested MAY be sent to the host specified in the Redirect-Host AVP.

Method Detail

fromInt

public static RedirectHostUsageType 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 interface Enumerated
Returns:
value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.