net.java.slee.resource.diameter.cca.events.avp
Enum FinalUnitActionType

java.lang.Object
  extended by java.lang.Enum<FinalUnitActionType>
      extended by net.java.slee.resource.diameter.cca.events.avp.FinalUnitActionType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FinalUnitActionType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum FinalUnitActionType
extends java.lang.Enum<FinalUnitActionType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

 8.35. Final-Unit-Action AVP


   The Final-Unit-Action AVP (AVP Code 449) is of type Enumerated and
   indicates to the credit-control client the action to be taken when
   the user's account cannot cover the service cost.

   The Final-Unit-Action can be one of the following:

   TERMINATE                       0
      The credit-control client MUST terminate the service session.
      This is the default handling, applicable whenever the credit-
      control client receives an unsupported Final-Unit-Action value,
      and it MUST be supported by all the Diameter credit-control client
      implementations conforming to this specification.

   REDIRECT                        1
      The service element MUST redirect the user to the address
      specified in the Redirect-Server-Address AVP.  The redirect action
      is defined in section 5.6.2.

   RESTRICT_ACCESS                 2
      The access device MUST restrict the user access according to the
      IP packet filters defined in the Restriction-Filter-Rule AVP or
      according to the IP packet filters identified by the Filter-Id
      AVP.  All the packets not matching the filters MUST be dropped
      (see section 5.6.3).
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
REDIRECT
           
RESTRICT_ACCESS
           
TERMINATE
           
 
Method Summary
static FinalUnitActionType fromInt(int type)
           
 int getValue()
           
static FinalUnitActionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FinalUnitActionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TERMINATE

public static final FinalUnitActionType TERMINATE

REDIRECT

public static final FinalUnitActionType REDIRECT

RESTRICT_ACCESS

public static final FinalUnitActionType RESTRICT_ACCESS
Method Detail

values

public static FinalUnitActionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FinalUnitActionType c : FinalUnitActionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FinalUnitActionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

fromInt

public static FinalUnitActionType fromInt(int type)
                                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated


Copyright © 2011. All Rights Reserved.