|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.AdditionalContentInformation
public class AdditionalContentInformation
AdditionalContentInformation is a lightweight representation of the Grouped [Additional-Content-Information] Avp. It is used to identify the content within an MM when the MM-Content-Type Avp indicates multi-part content.
The [Additional-Content-Information] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
AdditionalContentInformation()
Constructs an empty AdditionalContentInformation object representing the [Additional-Content-Information] Avp. |
|
AdditionalContentInformation(java.util.List<Avp> avps)
Constructs an AdditionalContentInformation object representing the Grouped [Additional-Content-Information] Avp. |
Method Summary | |
---|---|
java.lang.String |
getAdditionalTypeInformation()
Gets the value corresponding to the payload of the [Additional-Type-Information] Avp. |
java.lang.Integer |
getContentSize()
Gets the value corresponding to the payload of the [Content-Size] Avp. |
java.lang.Integer |
getTypeNumber()
Gets the value corresponding to the payload of the [Type-Number] Avp. |
void |
setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
Sets the value corresponding to the payload of the [Additional-Type-Information] Avp. |
void |
setContentSize(java.lang.Integer contentSize)
Sets the value corresponding to the payload of the [Content-Size] Avp. |
void |
setTypeNumber(java.lang.Integer typeNumber)
Sets the value corresponding to the payload of the [Type-Number] Avp. |
Avp |
toAvp()
Transforms an AdditionalContentInformation object into a Grouped [Additional-Content-Information] Avp. |
void |
validate()
Validates the members of the AdditionalContentInformation object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdditionalContentInformation()
public AdditionalContentInformation(java.util.List<Avp> avps) throws AvpTransformationException
The method takes a List of Avps as an input. If an Avp code inside the list corresponds to a member of AdditionalContentInformation, the member will be populated with the Avp value during construction. If an Avp code is unknown, the value will be silently discarded.
avps
- a list of Avps that can appear in the Grouped [Additional-Content-Information] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.String getAdditionalTypeInformation()
public void setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
additionalTypeInformation
- the value corresponding to the payload of the [Additional-Type-Information] Avp.public java.lang.Integer getContentSize()
public void setContentSize(java.lang.Integer contentSize)
contentSize
- the value corresponding to the payload of the [Content-Size] Avp.public java.lang.Integer getTypeNumber()
public void setTypeNumber(java.lang.Integer typeNumber)
typeNumber
- the value corresponding to the payload of the [Type-Number] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of AdditionalContentInformation is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of AdditionalContentInformation will be transformed into Avps nested inside of the [Additional-Content-Information] Avp.
AvpTransformationException
- if a member of AdditionalContentInformation is in an unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |