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 Rf Reference Point Protocol Details (3GPP TS 32.299 V12.11.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 ] [ MBMS-Charged-Party ] * [ MSISDN ] [ MBMS-Data-Transfer-Start ] [ MBMS-Data-Transfer-Stop ]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.MbmsChargedPartygetMbmsChargedParty()Returns the value of the MBMS-Charged-Party AVP, of type Enumerated.longgetMbmsDataTransferStart()Returns the value of the MBMS-Data-Transfer-Start AVP, of type Unsigned64.longgetMbmsDataTransferStop()Returns the value of the MBMS-Data-Transfer-Stop AVP, of type Unsigned64.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[][]getMsisdns()Returns the set of MSISDN AVPs.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.booleanhasMbmsChargedParty()Returns true if the MBMS-Charged-Party AVP is present in the MBMS-Information AVP.booleanhasMbmsDataTransferStart()Returns true if the MBMS-Data-Transfer-Start AVP is present in the MBMS-Information AVP.booleanhasMbmsDataTransferStop()Returns true if the MBMS-Data-Transfer-Stop 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.voidremoveMbmsChargedParty()Removes the MBMS-Charged-Party AVP from the MBMS-Information AVP.voidremoveMbmsDataTransferStart()Removes the MBMS-Data-Transfer-Start AVP from the MBMS-Information AVP.voidremoveMbmsDataTransferStop()Removes the MBMS-Data-Transfer-Stop 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.voidremoveMsisdns()Removes all MSISDN AVPs 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.voidsetMbmsChargedParty(MbmsChargedParty mbmsChargedParty)Sets the value of the MBMS-Charged-Party AVP, of type Enumerated.voidsetMbmsDataTransferStart(long mbmsDataTransferStart)Sets the value of the MBMS-Data-Transfer-Start AVP, of type Unsigned64.voidsetMbmsDataTransferStop(long mbmsDataTransferStop)Sets the value of the MBMS-Data-Transfer-Stop AVP, of type Unsigned64.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.voidsetMsisdn(byte[] msisdn)Sets a single MSISDN AVP in the MBMS-Information AVP, of type OctetString.voidsetMsisdns(byte[][] msisdns)Sets the set of MSISDN AVPs, with all the values in the given array.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.
-
hasMbmsChargedParty
boolean hasMbmsChargedParty()
Returns true if the MBMS-Charged-Party AVP is present in the MBMS-Information AVP.
-
getMbmsChargedParty
MbmsChargedParty getMbmsChargedParty()
Returns the value of the MBMS-Charged-Party AVP, of type Enumerated.- Returns:
- the value of the MBMS-Charged-Party AVP, or null if it has not been set.
-
setMbmsChargedParty
void setMbmsChargedParty(MbmsChargedParty mbmsChargedParty)
Sets the value of the MBMS-Charged-Party AVP, of type Enumerated.- Throws:
NullPointerException- ifmbmsChargedPartyisnull.
-
removeMbmsChargedParty
void removeMbmsChargedParty()
Removes the MBMS-Charged-Party AVP from the MBMS-Information AVP. If the MBMS-Charged-Party AVP is not present, this method returns silently.
-
getMsisdns
byte[][] getMsisdns()
Returns the set of MSISDN 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 MSISDN AVPs have been set. The elements in the given array are byte[] objects.
-
setMsisdn
void setMsisdn(byte[] msisdn)
Sets a single MSISDN AVP in the MBMS-Information AVP, of type OctetString.- Throws:
NullPointerException- ifmsisdnisnull.
-
setMsisdns
void setMsisdns(byte[][] msisdns)
Sets the set of MSISDN 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 getMsisdns() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException- ifmsisdnsisnull.
-
removeMsisdns
void removeMsisdns()
Removes all MSISDN AVPs from the MBMS-Information AVP. If no MSISDN AVPs are present, this method returns silently.
-
hasMbmsDataTransferStart
boolean hasMbmsDataTransferStart()
Returns true if the MBMS-Data-Transfer-Start AVP is present in the MBMS-Information AVP.
-
getMbmsDataTransferStart
long getMbmsDataTransferStart()
Returns the value of the MBMS-Data-Transfer-Start AVP, of type Unsigned64. UsehasMbmsDataTransferStart()to check the existence of this AVP.- Returns:
- the value of the MBMS-Data-Transfer-Start AVP
- Throws:
IllegalStateException- if the MBMS-Data-Transfer-Start AVP has not been set.
-
setMbmsDataTransferStart
void setMbmsDataTransferStart(long mbmsDataTransferStart)
Sets the value of the MBMS-Data-Transfer-Start AVP, of type Unsigned64.
-
removeMbmsDataTransferStart
void removeMbmsDataTransferStart()
Removes the MBMS-Data-Transfer-Start AVP from the MBMS-Information AVP. If the MBMS-Data-Transfer-Start AVP is not present, this method returns silently.
-
hasMbmsDataTransferStop
boolean hasMbmsDataTransferStop()
Returns true if the MBMS-Data-Transfer-Stop AVP is present in the MBMS-Information AVP.
-
getMbmsDataTransferStop
long getMbmsDataTransferStop()
Returns the value of the MBMS-Data-Transfer-Stop AVP, of type Unsigned64. UsehasMbmsDataTransferStop()to check the existence of this AVP.- Returns:
- the value of the MBMS-Data-Transfer-Stop AVP
- Throws:
IllegalStateException- if the MBMS-Data-Transfer-Stop AVP has not been set.
-
setMbmsDataTransferStop
void setMbmsDataTransferStop(long mbmsDataTransferStop)
Sets the value of the MBMS-Data-Transfer-Stop AVP, of type Unsigned64.
-
removeMbmsDataTransferStop
void removeMbmsDataTransferStop()
Removes the MBMS-Data-Transfer-Stop AVP from the MBMS-Information AVP. If the MBMS-Data-Transfer-Stop 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.
-
-