Interface MbmsInformation
-
- All Superinterfaces:
Cloneable,DiameterAvp,GroupedAvp
public interface MbmsInformation extends GroupedAvp
Defines an interface representing the MBMS-Information grouped AVP type. From the Diameter Ro Reference Point Protocol Details (3GPP TS 32.299 V9.6.0) specification:7.2.99 MBMS-Information AVP The MBMS-Information AVP (AVP code 880) is of type Grouped. Its purpose is to allow the transmission of additional MBMS service specific information elements. It has the following ABNF grammar: MBMS-Information ::= < AVP Header: 880> [ TMGI ] [ MBMS-Service-Type ] [ MBMS-User-Service-Type ] [ File-Repair-Supported ] [ Required-MBMS-Bearer-Capabilities ] [ MBMS-2G-3G-Indicator ] [ RAI ] * [ MBMS-Service-Area ] [ MBMS-Session-Identity ] [ CN-IP-Multicast-Distribution ] [ MBMS-GW-Address ]Note:
The support for extension AVPs is present even thou the ABNF grammar for this AVP does not contain the "* [ AVP ]" line. Be aware that adding any extension AVPs may result in interoperability problems with products that strongly validate the incoming diameter message for it's adherence to the specification.
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CnIpMulticastDistributiongetCnIpMulticastDistribution()Returns the value of the CN-IP-Multicast-Distribution AVP, of type Enumerated.DiameterAvp[]getExtensionAvps()Returns the set of extension AVPs.FileRepairSupportedgetFileRepairSupported()Returns the value of the File-Repair-Supported AVP, of type Enumerated.byte[]getMbms2g3gIndicator()Returns the value of the MBMS-2G-3G-Indicator AVP, of type OctetString.AddressgetMbmsGwAddress()Returns the value of the MBMS-GW-Address AVP, of type Address.byte[][]getMbmsServiceAreas()Returns the set of MBMS-Service-Area AVPs.byte[]getMbmsServiceType()Returns the value of the MBMS-Service-Type AVP, of type OctetString.byte[]getMbmsSessionIdentity()Returns the value of the MBMS-Session-Identity AVP, of type OctetString.MbmsUserServiceTypegetMbmsUserServiceType()Returns the value of the MBMS-User-Service-Type AVP, of type Enumerated.byte[]getRai()Returns the value of the RAI AVP, of type OctetString.byte[]getRequiredMbmsBearerCapabilities()Returns the value of the Required-MBMS-Bearer-Capabilities AVP, of type OctetString.byte[]getTmgi()Returns the value of the TMGI AVP, of type OctetString.booleanhasCnIpMulticastDistribution()Returns true if the CN-IP-Multicast-Distribution AVP is present in the MBMS-Information AVP.booleanhasFileRepairSupported()Returns true if the File-Repair-Supported AVP is present in the MBMS-Information AVP.booleanhasMbms2g3gIndicator()Returns true if the MBMS-2G-3G-Indicator AVP is present in the MBMS-Information AVP.booleanhasMbmsGwAddress()Returns true if the MBMS-GW-Address AVP is present in the MBMS-Information AVP.booleanhasMbmsServiceType()Returns true if the MBMS-Service-Type AVP is present in the MBMS-Information AVP.booleanhasMbmsSessionIdentity()Returns true if the MBMS-Session-Identity AVP is present in the MBMS-Information AVP.booleanhasMbmsUserServiceType()Returns true if the MBMS-User-Service-Type AVP is present in the MBMS-Information AVP.booleanhasRai()Returns true if the RAI AVP is present in the MBMS-Information AVP.booleanhasRequiredMbmsBearerCapabilities()Returns true if the Required-MBMS-Bearer-Capabilities AVP is present in the MBMS-Information AVP.booleanhasTmgi()Returns true if the TMGI AVP is present in the MBMS-Information AVP.voidremoveCnIpMulticastDistribution()Removes the CN-IP-Multicast-Distribution AVP from the MBMS-Information AVP.voidremoveExtensionAvps()Removes all extension AVPs from the MBMS-Information AVP.voidremoveFileRepairSupported()Removes the File-Repair-Supported AVP from the MBMS-Information AVP.voidremoveMbms2g3gIndicator()Removes the MBMS-2G-3G-Indicator AVP from the MBMS-Information AVP.voidremoveMbmsGwAddress()Removes the MBMS-GW-Address AVP from the MBMS-Information AVP.voidremoveMbmsServiceAreas()Removes all MBMS-Service-Area AVPs from the MBMS-Information AVP.voidremoveMbmsServiceType()Removes the MBMS-Service-Type AVP from the MBMS-Information AVP.voidremoveMbmsSessionIdentity()Removes the MBMS-Session-Identity AVP from the MBMS-Information AVP.voidremoveMbmsUserServiceType()Removes the MBMS-User-Service-Type AVP from the MBMS-Information AVP.voidremoveRai()Removes the RAI AVP from the MBMS-Information AVP.voidremoveRequiredMbmsBearerCapabilities()Removes the Required-MBMS-Bearer-Capabilities AVP from the MBMS-Information AVP.voidremoveTmgi()Removes the TMGI AVP from the MBMS-Information AVP.voidsetCnIpMulticastDistribution(CnIpMulticastDistribution cnIpMulticastDistribution)Sets the value of the CN-IP-Multicast-Distribution AVP, of type Enumerated.voidsetExtensionAvps(DiameterAvp[] avps)Sets the set of extension AVPs with all the values in the given array.voidsetFileRepairSupported(FileRepairSupported fileRepairSupported)Sets the value of the File-Repair-Supported AVP, of type Enumerated.voidsetMbms2g3gIndicator(byte[] mbms2g3gIndicator)Sets the value of the MBMS-2G-3G-Indicator AVP, of type OctetString.voidsetMbmsGwAddress(Address mbmsGwAddress)Sets the value of the MBMS-GW-Address AVP, of type Address.voidsetMbmsServiceArea(byte[] mbmsServiceArea)Sets a single MBMS-Service-Area AVP in the MBMS-Information AVP, of type OctetString.voidsetMbmsServiceAreas(byte[][] mbmsServiceAreas)Sets the set of MBMS-Service-Area AVPs, with all the values in the given array.voidsetMbmsServiceType(byte[] mbmsServiceType)Sets the value of the MBMS-Service-Type AVP, of type OctetString.voidsetMbmsSessionIdentity(byte[] mbmsSessionIdentity)Sets the value of the MBMS-Session-Identity AVP, of type OctetString.voidsetMbmsUserServiceType(MbmsUserServiceType mbmsUserServiceType)Sets the value of the MBMS-User-Service-Type AVP, of type Enumerated.voidsetRai(byte[] rai)Sets the value of the RAI AVP, of type OctetString.voidsetRequiredMbmsBearerCapabilities(byte[] requiredMbmsBearerCapabilities)Sets the value of the Required-MBMS-Bearer-Capabilities AVP, of type OctetString.voidsetTmgi(byte[] tmgi)Sets the value of the TMGI AVP, of type OctetString.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasTmgi
boolean hasTmgi()
Returns true if the TMGI AVP is present in the MBMS-Information AVP.
-
getTmgi
byte[] getTmgi()
Returns the value of the TMGI AVP, of type OctetString.- Returns:
- the value of the TMGI AVP, or null if it has not been set.
-
setTmgi
void setTmgi(byte[] tmgi)
Sets the value of the TMGI AVP, of type OctetString.- Throws:
NullPointerException- iftmgiisnull.
-
removeTmgi
void removeTmgi()
Removes the TMGI AVP from the MBMS-Information AVP. If the TMGI AVP is not present, this method returns silently.
-
hasMbmsServiceType
boolean hasMbmsServiceType()
Returns true if the MBMS-Service-Type AVP is present in the MBMS-Information AVP.
-
getMbmsServiceType
byte[] getMbmsServiceType()
Returns the value of the MBMS-Service-Type AVP, of type OctetString.- Returns:
- the value of the MBMS-Service-Type AVP, or null if it has not been set.
-
setMbmsServiceType
void setMbmsServiceType(byte[] mbmsServiceType)
Sets the value of the MBMS-Service-Type AVP, of type OctetString.- Throws:
NullPointerException- ifmbmsServiceTypeisnull.
-
removeMbmsServiceType
void removeMbmsServiceType()
Removes the MBMS-Service-Type AVP from the MBMS-Information AVP. If the MBMS-Service-Type AVP is not present, this method returns silently.
-
hasMbmsUserServiceType
boolean hasMbmsUserServiceType()
Returns true if the MBMS-User-Service-Type AVP is present in the MBMS-Information AVP.
-
getMbmsUserServiceType
MbmsUserServiceType getMbmsUserServiceType()
Returns the value of the MBMS-User-Service-Type AVP, of type Enumerated.- Returns:
- the value of the MBMS-User-Service-Type AVP, or null if it has not been set.
-
setMbmsUserServiceType
void setMbmsUserServiceType(MbmsUserServiceType mbmsUserServiceType)
Sets the value of the MBMS-User-Service-Type AVP, of type Enumerated.- Throws:
NullPointerException- ifmbmsUserServiceTypeisnull.
-
removeMbmsUserServiceType
void removeMbmsUserServiceType()
Removes the MBMS-User-Service-Type AVP from the MBMS-Information AVP. If the MBMS-User-Service-Type AVP is not present, this method returns silently.
-
hasFileRepairSupported
boolean hasFileRepairSupported()
Returns true if the File-Repair-Supported AVP is present in the MBMS-Information AVP.
-
getFileRepairSupported
FileRepairSupported getFileRepairSupported()
Returns the value of the File-Repair-Supported AVP, of type Enumerated.- Returns:
- the value of the File-Repair-Supported AVP, or null if it has not been set.
-
setFileRepairSupported
void setFileRepairSupported(FileRepairSupported fileRepairSupported)
Sets the value of the File-Repair-Supported AVP, of type Enumerated.- Throws:
NullPointerException- iffileRepairSupportedisnull.
-
removeFileRepairSupported
void removeFileRepairSupported()
Removes the File-Repair-Supported AVP from the MBMS-Information AVP. If the File-Repair-Supported AVP is not present, this method returns silently.
-
hasRequiredMbmsBearerCapabilities
boolean hasRequiredMbmsBearerCapabilities()
Returns true if the Required-MBMS-Bearer-Capabilities AVP is present in the MBMS-Information AVP.
-
getRequiredMbmsBearerCapabilities
byte[] getRequiredMbmsBearerCapabilities()
Returns the value of the Required-MBMS-Bearer-Capabilities AVP, of type OctetString.- Returns:
- the value of the Required-MBMS-Bearer-Capabilities AVP, or null if it has not been set.
-
setRequiredMbmsBearerCapabilities
void setRequiredMbmsBearerCapabilities(byte[] requiredMbmsBearerCapabilities)
Sets the value of the Required-MBMS-Bearer-Capabilities AVP, of type OctetString.- Throws:
NullPointerException- ifrequiredMbmsBearerCapabilitiesisnull.
-
removeRequiredMbmsBearerCapabilities
void removeRequiredMbmsBearerCapabilities()
Removes the Required-MBMS-Bearer-Capabilities AVP from the MBMS-Information AVP. If the Required-MBMS-Bearer-Capabilities AVP is not present, this method returns silently.
-
hasMbms2g3gIndicator
boolean hasMbms2g3gIndicator()
Returns true if the MBMS-2G-3G-Indicator AVP is present in the MBMS-Information AVP.
-
getMbms2g3gIndicator
byte[] getMbms2g3gIndicator()
Returns the value of the MBMS-2G-3G-Indicator AVP, of type OctetString.- Returns:
- the value of the MBMS-2G-3G-Indicator AVP, or null if it has not been set.
-
setMbms2g3gIndicator
void setMbms2g3gIndicator(byte[] mbms2g3gIndicator)
Sets the value of the MBMS-2G-3G-Indicator AVP, of type OctetString.- Throws:
NullPointerException- ifmbms2g3gIndicatorisnull.
-
removeMbms2g3gIndicator
void removeMbms2g3gIndicator()
Removes the MBMS-2G-3G-Indicator AVP from the MBMS-Information AVP. If the MBMS-2G-3G-Indicator AVP is not present, this method returns silently.
-
hasRai
boolean hasRai()
Returns true if the RAI AVP is present in the MBMS-Information AVP.
-
getRai
byte[] getRai()
Returns the value of the RAI AVP, of type OctetString.- Returns:
- the value of the RAI AVP, or null if it has not been set.
-
setRai
void setRai(byte[] rai)
Sets the value of the RAI AVP, of type OctetString.- Throws:
NullPointerException- ifraiisnull.
-
removeRai
void removeRai()
Removes the RAI AVP from the MBMS-Information AVP. If the RAI AVP is not present, this method returns silently.
-
getMbmsServiceAreas
byte[][] getMbmsServiceAreas()
Returns the set of MBMS-Service-Area AVPs. The returned array contains the AVPs in the order they appear in the MBMS-Information AVP. A return value of null implies that no MBMS-Service-Area AVPs have been set. The elements in the given array are byte[] objects.
-
setMbmsServiceArea
void setMbmsServiceArea(byte[] mbmsServiceArea)
Sets a single MBMS-Service-Area AVP in the MBMS-Information AVP, of type OctetString.- Throws:
NullPointerException- ifmbmsServiceAreaisnull.
-
setMbmsServiceAreas
void setMbmsServiceAreas(byte[][] mbmsServiceAreas)
Sets the set of MBMS-Service-Area AVPs, with all the values in the given array. The AVPs will be added to the MBMS-Information AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getMbmsServiceAreas() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException- ifmbmsServiceAreasisnull.
-
removeMbmsServiceAreas
void removeMbmsServiceAreas()
Removes all MBMS-Service-Area AVPs from the MBMS-Information AVP. If no MBMS-Service-Area AVPs are present, this method returns silently.
-
hasMbmsSessionIdentity
boolean hasMbmsSessionIdentity()
Returns true if the MBMS-Session-Identity AVP is present in the MBMS-Information AVP.
-
getMbmsSessionIdentity
byte[] getMbmsSessionIdentity()
Returns the value of the MBMS-Session-Identity AVP, of type OctetString.- Returns:
- the value of the MBMS-Session-Identity AVP, or null if it has not been set.
-
setMbmsSessionIdentity
void setMbmsSessionIdentity(byte[] mbmsSessionIdentity)
Sets the value of the MBMS-Session-Identity AVP, of type OctetString.- Throws:
NullPointerException- ifmbmsSessionIdentityisnull.
-
removeMbmsSessionIdentity
void removeMbmsSessionIdentity()
Removes the MBMS-Session-Identity AVP from the MBMS-Information AVP. If the MBMS-Session-Identity AVP is not present, this method returns silently.
-
hasCnIpMulticastDistribution
boolean hasCnIpMulticastDistribution()
Returns true if the CN-IP-Multicast-Distribution AVP is present in the MBMS-Information AVP.
-
getCnIpMulticastDistribution
CnIpMulticastDistribution getCnIpMulticastDistribution()
Returns the value of the CN-IP-Multicast-Distribution AVP, of type Enumerated.- Returns:
- the value of the CN-IP-Multicast-Distribution AVP, or null if it has not been set.
-
setCnIpMulticastDistribution
void setCnIpMulticastDistribution(CnIpMulticastDistribution cnIpMulticastDistribution)
Sets the value of the CN-IP-Multicast-Distribution AVP, of type Enumerated.- Throws:
NullPointerException- ifcnIpMulticastDistributionisnull.
-
removeCnIpMulticastDistribution
void removeCnIpMulticastDistribution()
Removes the CN-IP-Multicast-Distribution AVP from the MBMS-Information AVP. If the CN-IP-Multicast-Distribution AVP is not present, this method returns silently.
-
hasMbmsGwAddress
boolean hasMbmsGwAddress()
Returns true if the MBMS-GW-Address AVP is present in the MBMS-Information AVP.
-
getMbmsGwAddress
Address getMbmsGwAddress()
Returns the value of the MBMS-GW-Address AVP, of type Address.- Returns:
- the value of the MBMS-GW-Address AVP, or null if it has not been set.
-
setMbmsGwAddress
void setMbmsGwAddress(Address mbmsGwAddress)
Sets the value of the MBMS-GW-Address AVP, of type Address.- Throws:
NullPointerException- ifmbmsGwAddressisnull.
-
removeMbmsGwAddress
void removeMbmsGwAddress()
Removes the MBMS-GW-Address AVP from the MBMS-Information AVP. If the MBMS-GW-Address AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the MBMS-Information AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to MBMS-Information AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
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)NullPointerException- ifavpsisnull.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the MBMS-Information AVP. If no extension AVPs are present, this method returns silently.
-
-