public interface AdditionalContentInformation extends GroupedAvp
7.2.5 Additional-Content-Information AVP The Additional-Content-Information AVP (AVP code 1207) is of type Grouped and identifies any subsequent content types. It is used to identify each content (including re-occurences) within an MM when the Type-Number AVP or Additional-Type-Information AVP from the Content-Type AVP indicate a multi- part content. It has the following ABNF grammar: Additional-Content-Information ::= < AVP Header: 1207 > [ Type-Number ] [ Additional-Type-Information ] [ Content-Size ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdditionalTypeInformation()
Returns the value of the Additional-Type-Information AVP, of type UTF8String.
|
long |
getContentSize()
Returns the value of the Content-Size AVP, of type Unsigned32.
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
TypeNumber |
getTypeNumber()
Returns the value of the Type-Number AVP, of type Enumerated.
|
boolean |
hasAdditionalTypeInformation()
Returns true if the Additional-Type-Information AVP is present in the Additional-Content-Information AVP.
|
boolean |
hasContentSize()
Returns true if the Content-Size AVP is present in the Additional-Content-Information AVP.
|
boolean |
hasTypeNumber()
Returns true if the Type-Number AVP is present in the Additional-Content-Information AVP.
|
void |
removeAdditionalTypeInformation()
Removes the Additional-Type-Information AVP from the Additional-Content-Information AVP.
|
void |
removeContentSize()
Removes the Content-Size AVP from the Additional-Content-Information AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Additional-Content-Information AVP.
|
void |
removeTypeNumber()
Removes the Type-Number AVP from the Additional-Content-Information AVP.
|
void |
setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
Sets the value of the Additional-Type-Information AVP, of type UTF8String.
|
void |
setContentSize(long contentSize)
Sets the value of the Content-Size AVP, of type Unsigned32.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setTypeNumber(TypeNumber typeNumber)
Sets the value of the Type-Number AVP, of type Enumerated.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasTypeNumber()
TypeNumber getTypeNumber()
void setTypeNumber(TypeNumber typeNumber)
java.lang.NullPointerException
- if typeNumber
is null
.void removeTypeNumber()
boolean hasAdditionalTypeInformation()
java.lang.String getAdditionalTypeInformation()
void setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
java.lang.NullPointerException
- if additionalTypeInformation
is null
.void removeAdditionalTypeInformation()
boolean hasContentSize()
long getContentSize()
hasContentSize()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Content-Size AVP has not been set.void setContentSize(long contentSize)
void removeContentSize()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()