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

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

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

8.3. CC-Request-Type AVP


   The CC-Request-Type AVP (AVP Code 416) is of type Enumerated and
   contains the reason for sending the credit-control request message.
   It MUST be present in all Credit-Control-Request messages.  The
   following values are defined for the CC-Request-Type AVP:

   INITIAL_REQUEST                 1
      An Initial request is used to initiate a credit-control session,
      and contains credit control information that is relevant to the
      initiation.

   UPDATE_REQUEST                  2
      An Update request contains credit-control information for an
      existing credit-control session.  Update credit-control requests
      SHOULD be sent every time a credit-control re-authorization is
      needed at the expiry of the allocated quota or validity time.
      Further, additional service-specific events MAY trigger a
      spontaneous Update request.

   TERMINATION_REQUEST             3
      A Termination request is sent to terminate a credit-control
      session and contains credit-control information relevant to the
      existing session.

   EVENT_REQUEST                   4
      An Event request is used when there is no need to maintain any
      credit-control session state in the credit-control server.  This
      request contains all information relevant to the service, and is
      the only request of the service.  The reason for the Event request
      is further detailed in the Requested-Action AVP.  The Requested-
      Action AVP MUST be included in the Credit-Control-Request message
      when CC-Request-Type is set to EVENT_REQUEST.
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
EVENT_REQUEST
           
INITIAL_REQUEST
           
TERMINATION_REQUEST
           
UPDATE_REQUEST
           
 
Field Summary
static int _EVENT_REQUEST
           
static int _INITIAL_REQUEST
           
static int _TERMINATION_REQUEST
           
static int _UPDATE_REQUEST
           
 
Method Summary
static CcRequestType fromInt(int type)
           
 int getValue()
           
static CcRequestType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CcRequestType[] 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

EVENT_REQUEST

public static final CcRequestType EVENT_REQUEST

INITIAL_REQUEST

public static final CcRequestType INITIAL_REQUEST

TERMINATION_REQUEST

public static final CcRequestType TERMINATION_REQUEST

UPDATE_REQUEST

public static final CcRequestType UPDATE_REQUEST
Field Detail

_UPDATE_REQUEST

public static final int _UPDATE_REQUEST

_TERMINATION_REQUEST

public static final int _TERMINATION_REQUEST

_INITIAL_REQUEST

public static final int _INITIAL_REQUEST

_EVENT_REQUEST

public static final int _EVENT_REQUEST
Method Detail

values

public static CcRequestType[] 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 (CcRequestType c : CcRequestType.values())
    System.out.println(c);

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

valueOf

public static CcRequestType 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 CcRequestType 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.