com.ibm.diameter.charging.util
Class ChargingUtil

java.lang.Object
  extended by com.ibm.diameter.charging.util.ChargingUtil

public class ChargingUtil
extends java.lang.Object

The Charging Util contains common constants for the Ro and Rf applications, as well as tools to generate EndToEndIds and SessionIds.


Field Summary
static int ACCT_APPLICATION_ID
          The Acct-Application-Id used by Rf is 3.
static int AUTH_APPLICATION_ID
          The Auth-Application-Id used by Ro is 4.
static int NO_REQUIRED_ID
           
static com.ibm.diameter.util.ApplicationIdInfo RF_APPLICATION_ID_INFO
          Application Identifier for Rf.
static int[] RF_SUPPORTED_VENDOR_IDS
          Array of Vendor-Ids supported by the Rf Application.
static com.ibm.diameter.util.ApplicationIdInfo RO_APPLICATION_ID_INFO
          Application Identifier for Ro.
static int[] RO_SUPPORTED_VENDOR_IDS
          Array of Vendor-Ids supported by the Ro Application.
static int VENDOR_ID_3GPP
          The Vendor-Id of the 3GPP is 10415.
static int VENDOR_ID_BASE
          The Vendor-Id of the Diameter Base is 0.
 
Method Summary
static java.lang.String generateDiameterSession(byte[] origin_host)
          Generates a unique Session Id that can be inserted into the {Session-Id} Avp.
static int generateEndToEndId()
          Generates a unique End to End Identifer that can be inserted into the diameter packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_REQUIRED_ID

public static final int NO_REQUIRED_ID
See Also:
Constant Field Values

VENDOR_ID_3GPP

public static final int VENDOR_ID_3GPP
The Vendor-Id of the 3GPP is 10415.

See Also:
Constant Field Values

VENDOR_ID_BASE

public static final int VENDOR_ID_BASE
The Vendor-Id of the Diameter Base is 0.

See Also:
Constant Field Values

ACCT_APPLICATION_ID

public static final int ACCT_APPLICATION_ID
The Acct-Application-Id used by Rf is 3.

See Also:
Constant Field Values

AUTH_APPLICATION_ID

public static final int AUTH_APPLICATION_ID
The Auth-Application-Id used by Ro is 4.

See Also:
Constant Field Values

RF_SUPPORTED_VENDOR_IDS

public static final int[] RF_SUPPORTED_VENDOR_IDS
Array of Vendor-Ids supported by the Rf Application.


RO_SUPPORTED_VENDOR_IDS

public static final int[] RO_SUPPORTED_VENDOR_IDS
Array of Vendor-Ids supported by the Ro Application.


RF_APPLICATION_ID_INFO

public static final com.ibm.diameter.util.ApplicationIdInfo RF_APPLICATION_ID_INFO
Application Identifier for Rf.


RO_APPLICATION_ID_INFO

public static final com.ibm.diameter.util.ApplicationIdInfo RO_APPLICATION_ID_INFO
Application Identifier for Ro.

Method Detail

generateEndToEndId

public static int generateEndToEndId()
Generates a unique End to End Identifer that can be inserted into the diameter packet.

Returns:
a unique End to End Identifier.

generateDiameterSession

public static java.lang.String generateDiameterSession(byte[] origin_host)
Generates a unique Session Id that can be inserted into the {Session-Id} Avp.

Returns:
a unique Session Id.


Copyright © 2006 IBM Corp. All Rights Reserved.