public interface MmContentType extends GroupedAvp
7.2.86 MM-Content-Type AVP The MM-Content-Type AVP (AVP code 1203) is of type Grouped and indicates the overall content type of the MM content and includes information about all the contents of an MM. It has the following ABNF grammar: MM-Content-Type ::= < AVP Header: 1203 > [ Type-Number ] [ Additional-Type-Information ] [ Content-Size ] * [ Additional-Content-Information ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
AdditionalContentInformation[] |
getAdditionalContentInformations()
Returns the set of Additional-Content-Information AVPs.
|
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 MM-Content-Type AVP.
|
boolean |
hasContentSize()
Returns true if the Content-Size AVP is present in the MM-Content-Type AVP.
|
boolean |
hasTypeNumber()
Returns true if the Type-Number AVP is present in the MM-Content-Type AVP.
|
void |
removeAdditionalContentInformations()
Removes all Additional-Content-Information AVPs from the MM-Content-Type AVP.
|
void |
removeAdditionalTypeInformation()
Removes the Additional-Type-Information AVP from the MM-Content-Type AVP.
|
void |
removeContentSize()
Removes the Content-Size AVP from the MM-Content-Type AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the MM-Content-Type AVP.
|
void |
removeTypeNumber()
Removes the Type-Number AVP from the MM-Content-Type AVP.
|
void |
setAdditionalContentInformation(AdditionalContentInformation additionalContentInformation)
Sets a single Additional-Content-Information AVP in the MM-Content-Type AVP, of type Grouped.
|
void |
setAdditionalContentInformations(AdditionalContentInformation[] additionalContentInformations)
Sets the set of Additional-Content-Information AVPs, with all the values in the given array.
|
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()
AdditionalContentInformation[] getAdditionalContentInformations()
void setAdditionalContentInformation(AdditionalContentInformation additionalContentInformation)
java.lang.NullPointerException
- if additionalContentInformation
is null
.void setAdditionalContentInformations(AdditionalContentInformation[] additionalContentInformations)
java.lang.NullPointerException
- if additionalContentInformations
is null
.void removeAdditionalContentInformations()
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()