|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.charging.util.MessageBody
public class MessageBody
MessageBody is a lightweight representation of the Grouped [WLAN-Radio-Container] Avp. It contains information about the SIP message body including user-to-user data.
The [Message-Body] Avp is defined by the 3GPP in ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.
Constructor Summary | |
---|---|
MessageBody()
Constructs an empty MessageBody object representing the [Message-Body] Avp. |
|
MessageBody(java.util.List<Avp> avps)
Constructs a MessageBody object representing the Grouped [Message-Body] Avp. |
Method Summary | |
---|---|
java.lang.String |
getContentDisposition()
Gets the value corresponding to the payload of the [Content-Disposition] Avp. |
java.lang.Integer |
getContentLength()
Gets the value corresponding to the payload of the {Content-Length} Avp. |
java.lang.String |
getContentType()
Gets the value corresponding to the payload of the {Content-Type} Avp. |
java.lang.Integer |
getOriginator()
Gets the value corresponding to the payload of the [Originator] Avp. |
void |
setContentDisposition(java.lang.String contentDisposition)
Sets the value corresponding to the payload of the [Content-Disposition] Avp. |
void |
setContentLength(java.lang.Integer contentLength)
Sets the value corresponding to the payload of the {Content-Length} Avp. |
void |
setContentType(java.lang.String contentType)
Sets the value corresponding to the payload of the {Content-Type} Avp. |
void |
setOriginator(java.lang.Integer originator)
Sets the value corresponding to the payload of the [Originator] Avp. |
Avp |
toAvp()
Transforms a MessageBody object into a Grouped [Message-Body] Avp. |
void |
validate()
Validates the members of the MessageBody object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageBody()
public MessageBody(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 MessageBody, 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
[Message-Body] Avp.
AvpTransformationException
- if the Avp value is in an unexpected format.Method Detail |
---|
public java.lang.String getContentDisposition()
public void setContentDisposition(java.lang.String contentDisposition)
contentDisposition
- the value corresponding to the payload of the [Content-Disposition] Avp.public java.lang.Integer getContentLength()
public void setContentLength(java.lang.Integer contentLength)
contentLength
- the value corresponding to the payload of the {Content-Length} Avp.public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- the value corresponding to the payload of the {Content-Type} Avp.public java.lang.Integer getOriginator()
public void setOriginator(java.lang.Integer originator)
originator
- the value corresponding to the payload of the [Originator] Avp.public void validate() throws ChargingValidationException
ChargingValidationException
- if a member of MessageBody is in an unexpected format.public Avp toAvp() throws AvpTransformationException
All non-null members of MessageBody will be transformed into Avps nested inside of the [Message-Body] Avp.
AvpTransformationException
- if a member of MessageBody is in an
unexpected format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |