|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
public class DiameterAvpImpl
Super project: mobicents 12:51:53 2008-05-08
| Field Summary | |
|---|---|
protected int |
code
|
protected static org.apache.log4j.Logger |
log
|
protected int |
mnd
|
protected java.lang.String |
name
|
protected org.jdiameter.client.impl.parser.MessageParser |
parser
|
protected int |
prt
|
protected DiameterAvpType |
type
|
protected long |
vendorId
|
| Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp |
|---|
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT |
| Constructor Summary | |
|---|---|
DiameterAvpImpl(int code,
long vendorId,
int mnd,
int prt,
byte[] value,
DiameterAvpType type)
|
|
| 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) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected long vendorId
protected int code
protected int mnd
protected int prt
protected java.lang.String name
protected DiameterAvpType type
protected org.jdiameter.client.impl.parser.MessageParser parser
| Constructor Detail |
|---|
public DiameterAvpImpl(int code,
long vendorId,
int mnd,
int prt,
byte[] value,
DiameterAvpType type)
| Method Detail |
|---|
public int getCode()
DiameterAvp
getCode in interface DiameterAvppublic long getVendorId()
DiameterAvpThe 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.
getVendorId in interface DiameterAvppublic java.lang.String getName()
DiameterAvp
getName in interface DiameterAvppublic DiameterAvpType getType()
DiameterAvporg.mobicents.slee.resource.diameter.base.DiameterAvpType.
getType in interface DiameterAvppublic int getMandatoryRule()
DiameterAvp
0 - MUST
1 - MAY
2 - MUSTNOT
getMandatoryRule in interface DiameterAvppublic int getProtectedRule()
DiameterAvp
0 - MUST
1 - MAY
2 - MUSTNOT
getProtectedRule in interface DiameterAvppublic double doubleValue()
DiameterAvp
doubleValue in interface DiameterAvppublic float floatValue()
DiameterAvp
floatValue in interface DiameterAvppublic int intValue()
DiameterAvp
intValue in interface DiameterAvppublic long longValue()
DiameterAvp
longValue in interface DiameterAvppublic java.lang.String stringValue()
DiameterAvp
stringValue in interface DiameterAvppublic byte[] byteArrayValue()
DiameterAvp
byteArrayValue in interface DiameterAvppublic java.lang.Object clone()
DiameterAvp
clone in interface DiameterAvpclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||