net.java.slee.resource.diameter.rf.events.avp
Interface MessageBody

All Superinterfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp
All Known Implementing Classes:
MessageBodyImpl

public interface MessageBody
extends net.java.slee.resource.diameter.base.events.avp.GroupedAvp

Defines an interface representing the Message-Body grouped AVP type.

From the Diameter Rf Reference Point Protocol Details (3GPP TS 32.299 V7.1.0) specification:

 7.2.58 Message-Body AVP 
 The Message-Body AVP (AVP Code 889) is of type Grouped AVP and holds information about the message bodies including
 user-to-user data. 
 
 It has the following ABNF grammar: 
  Message-Body ::= AVP Header: 889 
      [ Content-Type ] 
      [ Content-Length ] 
      [ Content-Disposition ] 
      [ Originator ]
 

Author:
Alexandre Mendonca , Bartosz Baranowski

Field Summary
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Method Summary
 java.lang.String getContentDisposition()
          Returns the value of the Content-Disposition AVP, of type UTF8String.
 long getContentLength()
          Returns the value of the Content-Length AVP, of type Unsigned32.
 java.lang.String getContentType()
          Returns the value of the Content-Type AVP, of type UTF8String.
 Originator getOriginator()
          Returns the value of the Originator AVP, of type Enumerated.
 boolean hasContentDisposition()
          Returns true if the Content-Disposition AVP is present in the message.
 boolean hasContentLength()
          Returns true if the Content-Length AVP is present in the message.
 boolean hasContentType()
          Returns true if the Content-Type AVP is present in the message.
 boolean hasOriginator()
          Returns true if the Originator AVP is present in the message.
 void setContentDisposition(java.lang.String contentDisposition)
          Sets the value of the Content-Disposition AVP, of type UTF8String.
 void setContentLength(long contentLength)
          Sets the value of the Content-Length AVP, of type Unsigned32.
 void setContentType(java.lang.String contentType)
          Sets the value of the Content-Type AVP, of type UTF8String.
 void setOriginator(Originator originator)
          Sets the value of the Originator AVP, of type Enumerated.
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 

Method Detail

getContentDisposition

java.lang.String getContentDisposition()
Returns the value of the Content-Disposition AVP, of type UTF8String. A return value of null implies that the AVP has not been set.


getContentLength

long getContentLength()
Returns the value of the Content-Length AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.


getContentType

java.lang.String getContentType()
Returns the value of the Content-Type AVP, of type UTF8String. A return value of null implies that the AVP has not been set.


getOriginator

Originator getOriginator()
Returns the value of the Originator AVP, of type Enumerated. A return value of null implies that the AVP has not been set.


hasContentDisposition

boolean hasContentDisposition()
Returns true if the Content-Disposition AVP is present in the message.


hasContentLength

boolean hasContentLength()
Returns true if the Content-Length AVP is present in the message.


hasContentType

boolean hasContentType()
Returns true if the Content-Type AVP is present in the message.


hasOriginator

boolean hasOriginator()
Returns true if the Originator AVP is present in the message.


setContentDisposition

void setContentDisposition(java.lang.String contentDisposition)
Sets the value of the Content-Disposition AVP, of type UTF8String.


setContentLength

void setContentLength(long contentLength)
Sets the value of the Content-Length AVP, of type Unsigned32.


setContentType

void setContentType(java.lang.String contentType)
Sets the value of the Content-Type AVP, of type UTF8String.


setOriginator

void setOriginator(Originator originator)
Sets the value of the Originator AVP, of type Enumerated.



Copyright © 2011. All Rights Reserved.