BEA Systems, Inc.

BEA WebLogic SIP Server 3.0 API Reference


com.bea.wcp.diameter
Interface Enumerated

All Known Implementing Classes:
RecordType, RequestType

public interface Enumerated

Any enum value which implements this interface can be used as the value of an AVP of type INTEGER32, INTEGER64, or ENUMERATED. The #intValue() method will be called to obtain the actual AVP integer value. For example,

   enum AuthSessionState implements Enumerated {
     STATE_MAINTAINED, NO_STATE_MAINTAINED
     public intValue() { return ordinal(); }
   }
   ...
   Avp = new Avp(Attribute.AUTH_SESSION_STATE,
                 AuthSessionState.STATE_MAINTAINED);
 

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Method Summary
 int intValue()
          Returns the integer AVP value of this enumerated type.
 

Method Detail

intValue

public int intValue()
Returns the integer AVP value of this enumerated type. This is not necessarily the same as the Enum ordinal value since some Diameter enumerated constants start at 1 (i.e. Accounting-Record-Type AVP) rather than 0.


Documentation is available at
http://download.oracle.com/docs/cd/E13209_01/wlcp/wlss30/
Copyright 2006 BEA Systems Inc.