public interface UndefinedAvp extends DiameterAvp
decode
the AVP if they know the correct AVP type, i.e. one of the DiameterAvpType
constant
field values.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArrayValue()
Return the raw contents of this AVP
|
DiameterAvp |
decode(DiameterAvpType type,
java.lang.String name)
Attempt to decode this undefined AVP to an AVP of a known type.
|
DiameterAvpType |
getType()
Return the AVP type (one of the String constants from
DiameterAvpType . |
clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getVendorID, groupedAvpValue, intValue, longValue, stringValue
static final java.lang.String NAME
DiameterAvp decode(DiameterAvpType type, java.lang.String name) throws DecodeException
type
- the desired type for the decoded AVP. This must be one of the
constant values in DiameterAvpType
.name
- the name of the new AVP. Only used for debugging purposes.DiameterAvp
object
of the given type. The original UndefinedAvp
object is unchanged.DecodeException
- if unable to decode this AVP's data as the desired type.byte[] byteArrayValue()
The UndefinedAvp
data is available as a byte array. To convert the
data to a known type, use decode(DiameterAvpType,String)
.
byteArrayValue
in interface DiameterAvp
DiameterAvpType getType()
DiameterAvpType
..
UndefinedAvp
objects will always return a type of DiameterAvpType.UNDEFINED
.
getType
in interface DiameterAvp