|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiameterAvp
Diameter Attribute Value Pair (AVP). Applications can use this interface to retrieve the
AVP's code, name, type and value. Concrete implementations of this interface are created via the
DiameterMessageFactory.
| Field Summary | |
|---|---|
static int |
FLAG_RULE_MAY
|
static int |
FLAG_RULE_MUST
|
static int |
FLAG_RULE_MUSTNOT
|
| Method Summary | |
|---|---|
byte[] |
byteArrayValue()
Return the raw contents of this AVP |
java.lang.Object |
clone()
Creates and returns a deep copy of this AVP instance. |
double |
doubleValue()
The value of this AVP if the Diameter type can be represented in a Java double value (e.g., Float64, Float32) |
float |
floatValue()
The value of this AVP if the Diameter type can be represented in a Java float value (e.g., Float32) |
int |
getCode()
Return the AVP code, e.g., 263 for Session-Id |
int |
getMandatoryRule()
Return the rule for the mandatory (M) flag of this AVP. |
java.lang.String |
getName()
Return the AVP name, e.g., "Session-Id" |
int |
getProtectedRule()
Return the rule for the protected (P) flag of this AVP. |
DiameterAvpType |
getType()
Return the AVP type (one of the String constants from org.mobicents.slee.resource.diameter.base.DiameterAvpType. |
long |
getVendorId()
Return the Vendor-ID value for proprietary (non-IETF) AVPs. |
int |
intValue()
The value of this AVP if the Diameter type can be represented in a Java int value (e.g., Integer32) |
long |
longValue()
The value of this AVP if the Diameter type can be represented in a Java long value (e.g., Integer64, Unsigned32, Integer32) |
java.lang.String |
stringValue()
The value of this AVP if the Diameter type is equivalent to a Java String value (e.g., UTF8String) |
| Field Detail |
|---|
static final int FLAG_RULE_MUST
static final int FLAG_RULE_MAY
static final int FLAG_RULE_MUSTNOT
| Method Detail |
|---|
int getCode()
long getVendorId()
The value should be the IANA-assigned "SMI Network Management Private Enterprise Codes" value of the organisation that defined the AVP, for example 3GPP is 10415.
A Vendor-ID value of zero means the Vendor-ID is not specified. Standard AVPs defined by IETF will have a Vendor-ID of zero.
java.lang.String getName()
DiameterAvpType getType()
org.mobicents.slee.resource.diameter.base.DiameterAvpType.
int getMandatoryRule()
0 - MUST
1 - MAY
2 - MUSTNOT
int getProtectedRule()
0 - MUST
1 - MAY
2 - MUSTNOT
double doubleValue()
javax.naming.OperationNotSupportedException - if the AVP does not contain a double equivalentfloat floatValue()
javax.naming.OperationNotSupportedException - if the AVP does not contain a float equivalentint intValue()
javax.naming.OperationNotSupportedException - if the AVP does not contain an int equivalentlong longValue()
javax.naming.OperationNotSupportedException - if the AVP does not contain a long equivalentjava.lang.String stringValue()
3588 - if the AVP does not contain a String equivalentbyte[] byteArrayValue()
java.lang.Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||