net.java.slee.resource.diameter.ro.events.avp
Interface MmContentType

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:
MmContentTypeImpl

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

Defines an interface representing the MM-Content-Type grouped AVP type.

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

 7.2.63 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 ]
 

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
 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.
 int getTypeNumber()
          Returns the value of the Type-Number AVP, of type Integer32.
 boolean hasAdditionalTypeInformation()
          Returns true if the Additional-Type-Information AVP is present in the message.
 boolean hasContentSize()
          Returns true if the Content-Size AVP is present in the message.
 boolean hasTypeNumber()
          Returns true if the Type-Number AVP is present in the message.
 void setAdditionalContentInformation(AdditionalContentInformation additionalContentInformation)
          Sets a single Additional-Content-Information AVP in the message, 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 setTypeNumber(int typeNumber)
          Sets the value of the Type-Number AVP, of type Integer32.
 
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

getAdditionalContentInformations

AdditionalContentInformation[] getAdditionalContentInformations()
Returns the set of Additional-Content-Information AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Additional-Content-Information AVPs have been set. The elements in the given array are AdditionalContentInformation objects.


getAdditionalTypeInformation

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


getContentSize

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


getTypeNumber

int getTypeNumber()
Returns the value of the Type-Number AVP, of type Integer32. A return value of null implies that the AVP has not been set.


hasAdditionalTypeInformation

boolean hasAdditionalTypeInformation()
Returns true if the Additional-Type-Information AVP is present in the message.


hasContentSize

boolean hasContentSize()
Returns true if the Content-Size AVP is present in the message.


hasTypeNumber

boolean hasTypeNumber()
Returns true if the Type-Number AVP is present in the message.


setAdditionalContentInformation

void setAdditionalContentInformation(AdditionalContentInformation additionalContentInformation)
Sets a single Additional-Content-Information AVP in the message, of type Grouped.


setAdditionalContentInformations

void setAdditionalContentInformations(AdditionalContentInformation[] additionalContentInformations)
Sets the set of Additional-Content-Information AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getAdditionalContentInformations() is not guaranteed to return the same array instance, e.g. an "==" check would fail.


setAdditionalTypeInformation

void setAdditionalTypeInformation(java.lang.String additionalTypeInformation)
Sets the value of the Additional-Type-Information AVP, of type UTF8String.


setContentSize

void setContentSize(long contentSize)
Sets the value of the Content-Size AVP, of type Unsigned32.


setTypeNumber

void setTypeNumber(int typeNumber)
Sets the value of the Type-Number AVP, of type Integer32.



Copyright © 2011. All Rights Reserved.