org.jdiameter.api
Class ApplicationId

java.lang.Object
  extended by org.jdiameter.api.ApplicationId
All Implemented Interfaces:
java.io.Serializable

public final class ApplicationId
extends java.lang.Object
implements java.io.Serializable

The application Id is used to point out an application that is supported or used. It is a combination of Authentication application id, Accounting application id and Vendor id.

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com
See Also:
Serialized Form

Nested Class Summary
static interface ApplicationId.Ranges
          IANA [IANA] has assigned the range 0x00000001 to 0x00ffffff for standards-track applications; and 0x01000000 - 0xfffffffe for vendor specific applications, on a first-come, first-served basis.
static interface ApplicationId.Standard
          Standards-track application IDs are by Designated Expert with Specification Required [IANA]
 
Field Summary
static long UNDEFINED_VALUE
          Undefined value of id for application identifier
 
Method Summary
static ApplicationId createByAccAppId(long acchAppId)
          Create instance of ApplicationId use Accounting-Applicaion-Id
static ApplicationId createByAccAppId(long vendorId, long acchAppId)
          Create instance of ApplicationId use Accounting-Applicaion-Id and Vendor-Id
static ApplicationId createByAuthAppId(long authAppId)
          Create instance of ApplicationId use Authentication-App-Id
static ApplicationId createByAuthAppId(long vendorId, long authAppId)
          Create instance of ApplicationId use Authentication-App-Id and Vendor-Id
 boolean equals(java.lang.Object obj)
           
 long getAcctAppId()
           
 long getAuthAppId()
           
 long getVendorId()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED_VALUE

public static final long UNDEFINED_VALUE
Undefined value of id for application identifier

See Also:
Constant Field Values
Method Detail

createByAuthAppId

public static ApplicationId createByAuthAppId(long authAppId)
Create instance of ApplicationId use Authentication-App-Id

Parameters:
authAppId - authentication application id
Returns:
instance of class

createByAccAppId

public static ApplicationId createByAccAppId(long acchAppId)
Create instance of ApplicationId use Accounting-Applicaion-Id

Parameters:
acchAppId - accounting applicaion Id
Returns:
instance of class

createByAuthAppId

public static ApplicationId createByAuthAppId(long vendorId,
                                              long authAppId)
Create instance of ApplicationId use Authentication-App-Id and Vendor-Id

Parameters:
vendorId - vendor specific id
authAppId - authentication application id
Returns:
instance of class

createByAccAppId

public static ApplicationId createByAccAppId(long vendorId,
                                             long acchAppId)
Create instance of ApplicationId use Accounting-Applicaion-Id and Vendor-Id

Parameters:
vendorId - vendor specific id
acchAppId - accounting applicaion Id
Returns:
instance of class

getVendorId

public long getVendorId()
Returns:
Vendor-Isd

getAuthAppId

public long getAuthAppId()
Returns:
Authentication-Application-Id

getAcctAppId

public long getAcctAppId()
Returns:
Accounting-Application-Id

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Parameters:
obj - check object
Returns:
true if check object equals current instance (all appId is equals)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
hash code of object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String representation of object


Copyright © 2013. All Rights Reserved.