Interface CreditControlAnswer
-
- All Superinterfaces:
Cloneable
,CreditControlMessage
,DiameterMessage
public interface CreditControlAnswer extends CreditControlMessage
Defines an interface representing the Credit-Control-Answer command. From the Diameter Gx Reference Point Protocol Details (3GPP TS 29.212 V10.1.0) specification:5.6.3 Credit-Control-Answer (CCA) Command The CCA command, indicated by the Command-Code field set to 272 and the 'R' bit cleared in the Command Flags field, is sent by the PCRF to the PCEF in response to the CCR command. It is used to provision PCC rules and event triggers for the bearer/session and to provide the selected bearer control mode for the IP-CAN session. If the PCRF performs the bearer binding, PCC rules will be provisioned at bearer level. The primary and secondary CCF and/or primary and secondary OCS addresses may be included in the initial provisioning. Message Format: <Credit-Control-Answer> ::= < Diameter Header: 272, PXY > < Session-Id > { Auth-Application-Id } { Origin-Host } { Origin-Realm } [ Result-Code ] [ Experimental-Result ] { CC-Request-Type } { CC-Request-Number } *[ Supported-Features ] [ Bearer-Control-Mode ] *[ Event-Trigger ] [ Origin-State-Id ] *[ Redirect-Host ] [ Redirect-Host-Usage ] [ Redirect-Max-Cache-Time ] *[ Charging-Rule-Remove ] *[ Charging-Rule-Install ] [ Charging-Information ] [ Online ] [ Offline ] *[ QoS-Information ] [ Revalidation-Time ] [ Default-EPS-Bearer-QoS ] [ Bearer-Usage ] [ TGPP-User-Location-Info] *[ Usage-Monitoring-Information ] *[ CSG-Information-Reporting ] [ User-CSG-Information ] [ Error-Message ] [ Error-Reporting-Host ] *[ Failed-AVP ] *[ Proxy-Info ] *[ Route-Record ] *[ AVP ]
-
-
Field Summary
Fields Modifier and Type Field Description static int
commandCode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32.BearerControlMode
getBearerControlMode()
Returns the value of the Bearer-Control-Mode AVP, of type Enumerated.BearerUsage
getBearerUsage()
Returns the value of the Bearer-Usage AVP, of type Enumerated.long
getCcRequestNumber()
Returns the value of the CC-Request-Number AVP, of type Unsigned32.CcRequestType
getCcRequestType()
Returns the value of the CC-Request-Type AVP, of type Enumerated.ChargingInformation
getChargingInformation()
Returns the value of the Charging-Information AVP, of type Grouped.ChargingRuleInstall[]
getChargingRuleInstalls()
Returns the set of Charging-Rule-Install AVPs.ChargingRuleRemove[]
getChargingRuleRemoves()
Returns the set of Charging-Rule-Remove AVPs.CsgInformationReporting[]
getCsgInformationReportings()
Returns the set of CSG-Information-Reporting AVPs.DefaultEpsBearerQos
getDefaultEpsBearerQos()
Returns the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.String
getErrorMessage()
Returns the value of the Error-Message AVP, of type UTF8String.DiameterIdentity
getErrorReportingHost()
Returns the value of the Error-Reporting-Host AVP, of type DiameterIdentity.EventTrigger[]
getEventTriggers()
Returns the set of Event-Trigger AVPs.ExperimentalResult
getExperimentalResult()
Returns the value of the Experimental-Result AVP, of type Grouped.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.FailedAvp[]
getFailedAvps()
Returns the set of Failed-AVP AVPs.Offline
getOffline()
Returns the value of the Offline AVP, of type Enumerated.Online
getOnline()
Returns the value of the Online AVP, of type Enumerated.DiameterIdentity
getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.DiameterIdentity
getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.long
getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32.ProxyInfo[]
getProxyInfos()
Returns the set of Proxy-Info AVPs.QosInformation[]
getQosInformations()
Returns the set of QoS-Information AVPs.DiameterURI[]
getRedirectHosts()
Returns the set of Redirect-Host AVPs.RedirectHostUsage
getRedirectHostUsage()
Returns the value of the Redirect-Host-Usage AVP, of type Enumerated.long
getRedirectMaxCacheTime()
Returns the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32.long
getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32.Date
getRevalidationTime()
Returns the value of the Revalidation-Time AVP, of type Time.DiameterIdentity[]
getRouteRecords()
Returns the set of Route-Record AVPs.String
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.SupportedFeatures[]
getSupportedFeatureses()
Returns the set of Supported-Features AVPs.byte[]
getTgppUserLocationInfo()
Returns the value of the TGPP-User-Location-Info AVP, of type OctetString.UsageMonitoringInformation[]
getUsageMonitoringInformations()
Returns the set of Usage-Monitoring-Information AVPs.UserCsgInformation
getUserCsgInformation()
Returns the value of the User-CSG-Information AVP, of type Grouped.boolean
hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.boolean
hasBearerControlMode()
Returns true if the Bearer-Control-Mode AVP is present in the message.boolean
hasBearerUsage()
Returns true if the Bearer-Usage AVP is present in the message.boolean
hasCcRequestNumber()
Returns true if the CC-Request-Number AVP is present in the message.boolean
hasCcRequestType()
Returns true if the CC-Request-Type AVP is present in the message.boolean
hasChargingInformation()
Returns true if the Charging-Information AVP is present in the message.boolean
hasDefaultEpsBearerQos()
Returns true if the Default-EPS-Bearer-QoS AVP is present in the message.boolean
hasErrorMessage()
Returns true if the Error-Message AVP is present in the message.boolean
hasErrorReportingHost()
Returns true if the Error-Reporting-Host AVP is present in the message.boolean
hasExperimentalResult()
Returns true if the Experimental-Result AVP is present in the message.boolean
hasOffline()
Returns true if the Offline AVP is present in the message.boolean
hasOnline()
Returns true if the Online AVP is present in the message.boolean
hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.boolean
hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.boolean
hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message.boolean
hasRedirectHostUsage()
Returns true if the Redirect-Host-Usage AVP is present in the message.boolean
hasRedirectMaxCacheTime()
Returns true if the Redirect-Max-Cache-Time AVP is present in the message.boolean
hasResultCode()
Returns true if the Result-Code AVP is present in the message.boolean
hasRevalidationTime()
Returns true if the Revalidation-Time AVP is present in the message.boolean
hasSessionId()
Returns true if the Session-Id AVP is present in the message.boolean
hasTgppUserLocationInfo()
Returns true if the TGPP-User-Location-Info AVP is present in the message.boolean
hasUserCsgInformation()
Returns true if the User-CSG-Information AVP is present in the message.void
removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message.void
removeBearerControlMode()
Removes the Bearer-Control-Mode AVP from the message.void
removeBearerUsage()
Removes the Bearer-Usage AVP from the message.void
removeCcRequestNumber()
Removes the CC-Request-Number AVP from the message.void
removeCcRequestType()
Removes the CC-Request-Type AVP from the message.void
removeChargingInformation()
Removes the Charging-Information AVP from the message.void
removeChargingRuleInstalls()
Removes all Charging-Rule-Install AVPs from the message.void
removeChargingRuleRemoves()
Removes all Charging-Rule-Remove AVPs from the message.void
removeCsgInformationReportings()
Removes all CSG-Information-Reporting AVPs from the message.void
removeDefaultEpsBearerQos()
Removes the Default-EPS-Bearer-QoS AVP from the message.void
removeErrorMessage()
Removes the Error-Message AVP from the message.void
removeErrorReportingHost()
Removes the Error-Reporting-Host AVP from the message.void
removeEventTriggers()
Removes all Event-Trigger AVPs from the message.void
removeExperimentalResult()
Removes the Experimental-Result AVP from the message.void
removeExtensionAvps()
Removes all extension AVPs from the message.void
removeFailedAvps()
Removes all Failed-AVP AVPs from the message.void
removeOffline()
Removes the Offline AVP from the message.void
removeOnline()
Removes the Online AVP from the message.void
removeOriginHost()
Removes the Origin-Host AVP from the message.void
removeOriginRealm()
Removes the Origin-Realm AVP from the message.void
removeOriginStateId()
Removes the Origin-State-Id AVP from the message.void
removeProxyInfos()
Removes all Proxy-Info AVPs from the message.void
removeQosInformations()
Removes all QoS-Information AVPs from the message.void
removeRedirectHosts()
Removes all Redirect-Host AVPs from the message.void
removeRedirectHostUsage()
Removes the Redirect-Host-Usage AVP from the message.void
removeRedirectMaxCacheTime()
Removes the Redirect-Max-Cache-Time AVP from the message.void
removeResultCode()
Removes the Result-Code AVP from the message.void
removeRevalidationTime()
Removes the Revalidation-Time AVP from the message.void
removeRouteRecords()
Removes all Route-Record AVPs from the message.void
removeSessionId()
Removes the Session-Id AVP from the message.void
removeSupportedFeatureses()
Removes all Supported-Features AVPs from the message.void
removeTgppUserLocationInfo()
Removes the TGPP-User-Location-Info AVP from the message.void
removeUsageMonitoringInformations()
Removes all Usage-Monitoring-Information AVPs from the message.void
removeUserCsgInformation()
Removes the User-CSG-Information AVP from the message.void
setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.void
setBearerControlMode(BearerControlMode bearerControlMode)
Sets the value of the Bearer-Control-Mode AVP, of type Enumerated.void
setBearerUsage(BearerUsage bearerUsage)
Sets the value of the Bearer-Usage AVP, of type Enumerated.void
setCcRequestNumber(long ccRequestNumber)
Sets the value of the CC-Request-Number AVP, of type Unsigned32.void
setCcRequestType(CcRequestType ccRequestType)
Sets the value of the CC-Request-Type AVP, of type Enumerated.void
setChargingInformation(ChargingInformation chargingInformation)
Sets the value of the Charging-Information AVP, of type Grouped.void
setChargingRuleInstall(ChargingRuleInstall chargingRuleInstall)
Sets a single Charging-Rule-Install AVP in the message, of type Grouped.void
setChargingRuleInstalls(ChargingRuleInstall[] chargingRuleInstalls)
Sets the set of Charging-Rule-Install AVPs, with all the values in the given array.void
setChargingRuleRemove(ChargingRuleRemove chargingRuleRemove)
Sets a single Charging-Rule-Remove AVP in the message, of type Grouped.void
setChargingRuleRemoves(ChargingRuleRemove[] chargingRuleRemoves)
Sets the set of Charging-Rule-Remove AVPs, with all the values in the given array.void
setCsgInformationReporting(CsgInformationReporting csgInformationReporting)
Sets a single CSG-Information-Reporting AVP in the message, of type Enumerated.void
setCsgInformationReportings(CsgInformationReporting[] csgInformationReportings)
Sets the set of CSG-Information-Reporting AVPs, with all the values in the given array.void
setDefaultEpsBearerQos(DefaultEpsBearerQos defaultEpsBearerQos)
Sets the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.void
setErrorMessage(String errorMessage)
Sets the value of the Error-Message AVP, of type UTF8String.void
setErrorReportingHost(DiameterIdentity errorReportingHost)
Sets the value of the Error-Reporting-Host AVP, of type DiameterIdentity.void
setEventTrigger(EventTrigger eventTrigger)
Sets a single Event-Trigger AVP in the message, of type Enumerated.void
setEventTriggers(EventTrigger[] eventTriggers)
Sets the set of Event-Trigger AVPs, with all the values in the given array.void
setExperimentalResult(ExperimentalResult experimentalResult)
Sets the value of the Experimental-Result AVP, of type Grouped.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setFailedAvp(FailedAvp failedAvp)
Sets a single Failed-AVP AVP in the message, of type Grouped.void
setFailedAvps(FailedAvp[] failedAvps)
Sets the set of Failed-AVP AVPs, with all the values in the given array.void
setOffline(Offline offline)
Sets the value of the Offline AVP, of type Enumerated.void
setOnline(Online online)
Sets the value of the Online AVP, of type Enumerated.void
setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.void
setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.void
setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32.void
setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.void
setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array.void
setQosInformation(QosInformation qosInformation)
Sets a single QoS-Information AVP in the message, of type Grouped.void
setQosInformations(QosInformation[] qosInformations)
Sets the set of QoS-Information AVPs, with all the values in the given array.void
setRedirectHost(DiameterURI redirectHost)
Sets a single Redirect-Host AVP in the message, of type DiameterURI.void
setRedirectHosts(DiameterURI[] redirectHosts)
Sets the set of Redirect-Host AVPs, with all the values in the given array.void
setRedirectHostUsage(RedirectHostUsage redirectHostUsage)
Sets the value of the Redirect-Host-Usage AVP, of type Enumerated.void
setRedirectMaxCacheTime(long redirectMaxCacheTime)
Sets the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32.void
setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32.void
setRevalidationTime(Date revalidationTime)
Sets the value of the Revalidation-Time AVP, of type Time.void
setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.void
setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array.void
setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.void
setSupportedFeatures(SupportedFeatures supportedFeatures)
Sets a single Supported-Features AVP in the message, of type Grouped.void
setSupportedFeatureses(SupportedFeatures[] supportedFeatureses)
Sets the set of Supported-Features AVPs, with all the values in the given array.void
setTgppUserLocationInfo(byte[] tgppUserLocationInfo)
Sets the value of the TGPP-User-Location-Info AVP, of type OctetString.void
setUsageMonitoringInformation(UsageMonitoringInformation usageMonitoringInformation)
Sets a single Usage-Monitoring-Information AVP in the message, of type Grouped.void
setUsageMonitoringInformations(UsageMonitoringInformation[] usageMonitoringInformations)
Sets the set of Usage-Monitoring-Information AVPs, with all the values in the given array.void
setUserCsgInformation(UserCsgInformation userCsgInformation)
Sets the value of the User-CSG-Information AVP, of type Grouped.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getHeader, setDestinationHost, setDestinationRealm
-
-
-
-
Field Detail
-
commandCode
static final int commandCode
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSessionId
boolean hasSessionId()
Returns true if the Session-Id AVP is present in the message.- Specified by:
hasSessionId
in interfaceCreditControlMessage
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.- Specified by:
getSessionId
in interfaceCreditControlMessage
- Specified by:
getSessionId
in interfaceDiameterMessage
- Returns:
- the value of the Session-Id AVP or null if it has not been set on this message
-
setSessionId
void setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.- Specified by:
setSessionId
in interfaceCreditControlMessage
- Specified by:
setSessionId
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifsessionId
isnull
.
-
removeSessionId
void removeSessionId()
Removes the Session-Id AVP from the message. If the Session-Id AVP is not present, this method returns silently.
-
hasAuthApplicationId
boolean hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.- Specified by:
hasAuthApplicationId
in interfaceCreditControlMessage
-
getAuthApplicationId
long getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32. UsehasAuthApplicationId()
to check the existence of this AVP.- Specified by:
getAuthApplicationId
in interfaceCreditControlMessage
- Returns:
- the value of the Auth-Application-Id AVP
- Throws:
IllegalStateException
- if the Auth-Application-Id AVP has not been set on this message
-
setAuthApplicationId
void setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.- Specified by:
setAuthApplicationId
in interfaceCreditControlMessage
-
removeAuthApplicationId
void removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message. If the Auth-Application-Id AVP is not present, this method returns silently.
-
hasOriginHost
boolean hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.- Specified by:
hasOriginHost
in interfaceCreditControlMessage
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
getOriginHost
in interfaceCreditControlMessage
- Specified by:
getOriginHost
in interfaceDiameterMessage
- Returns:
- the value of the Origin-Host AVP or null if it has not been set on this message
-
setOriginHost
void setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
setOriginHost
in interfaceCreditControlMessage
- Specified by:
setOriginHost
in interfaceDiameterMessage
- Throws:
NullPointerException
- iforiginHost
isnull
.
-
removeOriginHost
void removeOriginHost()
Removes the Origin-Host AVP from the message. If the Origin-Host AVP is not present, this method returns silently.
-
hasOriginRealm
boolean hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.- Specified by:
hasOriginRealm
in interfaceCreditControlMessage
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
getOriginRealm
in interfaceCreditControlMessage
- Specified by:
getOriginRealm
in interfaceDiameterMessage
- Returns:
- the value of the Origin-Realm AVP or null if it has not been set on this message
-
setOriginRealm
void setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
setOriginRealm
in interfaceCreditControlMessage
- Specified by:
setOriginRealm
in interfaceDiameterMessage
- Throws:
NullPointerException
- iforiginRealm
isnull
.
-
removeOriginRealm
void removeOriginRealm()
Removes the Origin-Realm AVP from the message. If the Origin-Realm AVP is not present, this method returns silently.
-
hasResultCode
boolean hasResultCode()
Returns true if the Result-Code AVP is present in the message.
-
getResultCode
long getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. UsehasResultCode()
to check the existence of this AVP.- Returns:
- the value of the Result-Code AVP
- Throws:
IllegalStateException
- if the Result-Code AVP has not been set on this message
-
setResultCode
void setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32.
-
removeResultCode
void removeResultCode()
Removes the Result-Code AVP from the message. If the Result-Code AVP is not present, this method returns silently.
-
hasExperimentalResult
boolean hasExperimentalResult()
Returns true if the Experimental-Result AVP is present in the message.
-
getExperimentalResult
ExperimentalResult getExperimentalResult()
Returns the value of the Experimental-Result AVP, of type Grouped.- Returns:
- the value of the Experimental-Result AVP or null if it has not been set on this message
-
setExperimentalResult
void setExperimentalResult(ExperimentalResult experimentalResult)
Sets the value of the Experimental-Result AVP, of type Grouped.- Throws:
NullPointerException
- ifexperimentalResult
isnull
.
-
removeExperimentalResult
void removeExperimentalResult()
Removes the Experimental-Result AVP from the message. If the Experimental-Result AVP is not present, this method returns silently.
-
hasCcRequestType
boolean hasCcRequestType()
Returns true if the CC-Request-Type AVP is present in the message.- Specified by:
hasCcRequestType
in interfaceCreditControlMessage
-
getCcRequestType
CcRequestType getCcRequestType()
Returns the value of the CC-Request-Type AVP, of type Enumerated.- Specified by:
getCcRequestType
in interfaceCreditControlMessage
- Returns:
- the value of the CC-Request-Type AVP or null if it has not been set on this message
-
setCcRequestType
void setCcRequestType(CcRequestType ccRequestType)
Sets the value of the CC-Request-Type AVP, of type Enumerated.- Specified by:
setCcRequestType
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifccRequestType
isnull
.
-
removeCcRequestType
void removeCcRequestType()
Removes the CC-Request-Type AVP from the message. If the CC-Request-Type AVP is not present, this method returns silently.
-
hasCcRequestNumber
boolean hasCcRequestNumber()
Returns true if the CC-Request-Number AVP is present in the message.- Specified by:
hasCcRequestNumber
in interfaceCreditControlMessage
-
getCcRequestNumber
long getCcRequestNumber()
Returns the value of the CC-Request-Number AVP, of type Unsigned32. UsehasCcRequestNumber()
to check the existence of this AVP.- Specified by:
getCcRequestNumber
in interfaceCreditControlMessage
- Returns:
- the value of the CC-Request-Number AVP
- Throws:
IllegalStateException
- if the CC-Request-Number AVP has not been set on this message
-
setCcRequestNumber
void setCcRequestNumber(long ccRequestNumber)
Sets the value of the CC-Request-Number AVP, of type Unsigned32.- Specified by:
setCcRequestNumber
in interfaceCreditControlMessage
-
removeCcRequestNumber
void removeCcRequestNumber()
Removes the CC-Request-Number AVP from the message. If the CC-Request-Number AVP is not present, this method returns silently.
-
getSupportedFeatureses
SupportedFeatures[] getSupportedFeatureses()
Returns the set of Supported-Features AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Supported-Features AVPs have been set. The elements in the given array are SupportedFeatures objects.
-
setSupportedFeatures
void setSupportedFeatures(SupportedFeatures supportedFeatures)
Sets a single Supported-Features AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifsupportedFeatures
isnull
.
-
setSupportedFeatureses
void setSupportedFeatureses(SupportedFeatures[] supportedFeatureses)
Sets the set of Supported-Features 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 getSupportedFeatureses() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifsupportedFeatureses
isnull
.
-
removeSupportedFeatureses
void removeSupportedFeatureses()
Removes all Supported-Features AVPs from the message. If no Supported-Features AVPs are present, this method returns silently.
-
hasBearerControlMode
boolean hasBearerControlMode()
Returns true if the Bearer-Control-Mode AVP is present in the message.
-
getBearerControlMode
BearerControlMode getBearerControlMode()
Returns the value of the Bearer-Control-Mode AVP, of type Enumerated.- Returns:
- the value of the Bearer-Control-Mode AVP or null if it has not been set on this message
-
setBearerControlMode
void setBearerControlMode(BearerControlMode bearerControlMode)
Sets the value of the Bearer-Control-Mode AVP, of type Enumerated.- Throws:
NullPointerException
- ifbearerControlMode
isnull
.
-
removeBearerControlMode
void removeBearerControlMode()
Removes the Bearer-Control-Mode AVP from the message. If the Bearer-Control-Mode AVP is not present, this method returns silently.
-
getEventTriggers
EventTrigger[] getEventTriggers()
Returns the set of Event-Trigger AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Event-Trigger AVPs have been set. The elements in the given array are EventTrigger objects.
-
setEventTrigger
void setEventTrigger(EventTrigger eventTrigger)
Sets a single Event-Trigger AVP in the message, of type Enumerated.- Throws:
NullPointerException
- ifeventTrigger
isnull
.
-
setEventTriggers
void setEventTriggers(EventTrigger[] eventTriggers)
Sets the set of Event-Trigger 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 getEventTriggers() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifeventTriggers
isnull
.
-
removeEventTriggers
void removeEventTriggers()
Removes all Event-Trigger AVPs from the message. If no Event-Trigger AVPs are present, this method returns silently.
-
hasOriginStateId
boolean hasOriginStateId()
Returns true if the Origin-State-Id AVP is present in the message.
-
getOriginStateId
long getOriginStateId()
Returns the value of the Origin-State-Id AVP, of type Unsigned32. UsehasOriginStateId()
to check the existence of this AVP.- Returns:
- the value of the Origin-State-Id AVP
- Throws:
IllegalStateException
- if the Origin-State-Id AVP has not been set on this message
-
setOriginStateId
void setOriginStateId(long originStateId)
Sets the value of the Origin-State-Id AVP, of type Unsigned32.
-
removeOriginStateId
void removeOriginStateId()
Removes the Origin-State-Id AVP from the message. If the Origin-State-Id AVP is not present, this method returns silently.
-
getRedirectHosts
DiameterURI[] getRedirectHosts()
Returns the set of Redirect-Host AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Redirect-Host AVPs have been set. The elements in the given array are DiameterURI objects.
-
setRedirectHost
void setRedirectHost(DiameterURI redirectHost)
Sets a single Redirect-Host AVP in the message, of type DiameterURI.- Throws:
NullPointerException
- ifredirectHost
isnull
.
-
setRedirectHosts
void setRedirectHosts(DiameterURI[] redirectHosts)
Sets the set of Redirect-Host 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 getRedirectHosts() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifredirectHosts
isnull
.
-
removeRedirectHosts
void removeRedirectHosts()
Removes all Redirect-Host AVPs from the message. If no Redirect-Host AVPs are present, this method returns silently.
-
hasRedirectHostUsage
boolean hasRedirectHostUsage()
Returns true if the Redirect-Host-Usage AVP is present in the message.
-
getRedirectHostUsage
RedirectHostUsage getRedirectHostUsage()
Returns the value of the Redirect-Host-Usage AVP, of type Enumerated.- Returns:
- the value of the Redirect-Host-Usage AVP or null if it has not been set on this message
-
setRedirectHostUsage
void setRedirectHostUsage(RedirectHostUsage redirectHostUsage)
Sets the value of the Redirect-Host-Usage AVP, of type Enumerated.- Throws:
NullPointerException
- ifredirectHostUsage
isnull
.
-
removeRedirectHostUsage
void removeRedirectHostUsage()
Removes the Redirect-Host-Usage AVP from the message. If the Redirect-Host-Usage AVP is not present, this method returns silently.
-
hasRedirectMaxCacheTime
boolean hasRedirectMaxCacheTime()
Returns true if the Redirect-Max-Cache-Time AVP is present in the message.
-
getRedirectMaxCacheTime
long getRedirectMaxCacheTime()
Returns the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32. UsehasRedirectMaxCacheTime()
to check the existence of this AVP.- Returns:
- the value of the Redirect-Max-Cache-Time AVP
- Throws:
IllegalStateException
- if the Redirect-Max-Cache-Time AVP has not been set on this message
-
setRedirectMaxCacheTime
void setRedirectMaxCacheTime(long redirectMaxCacheTime)
Sets the value of the Redirect-Max-Cache-Time AVP, of type Unsigned32.
-
removeRedirectMaxCacheTime
void removeRedirectMaxCacheTime()
Removes the Redirect-Max-Cache-Time AVP from the message. If the Redirect-Max-Cache-Time AVP is not present, this method returns silently.
-
getChargingRuleRemoves
ChargingRuleRemove[] getChargingRuleRemoves()
Returns the set of Charging-Rule-Remove AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Charging-Rule-Remove AVPs have been set. The elements in the given array are ChargingRuleRemove objects.
-
setChargingRuleRemove
void setChargingRuleRemove(ChargingRuleRemove chargingRuleRemove)
Sets a single Charging-Rule-Remove AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifchargingRuleRemove
isnull
.
-
setChargingRuleRemoves
void setChargingRuleRemoves(ChargingRuleRemove[] chargingRuleRemoves)
Sets the set of Charging-Rule-Remove 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 getChargingRuleRemoves() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifchargingRuleRemoves
isnull
.
-
removeChargingRuleRemoves
void removeChargingRuleRemoves()
Removes all Charging-Rule-Remove AVPs from the message. If no Charging-Rule-Remove AVPs are present, this method returns silently.
-
getChargingRuleInstalls
ChargingRuleInstall[] getChargingRuleInstalls()
Returns the set of Charging-Rule-Install AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Charging-Rule-Install AVPs have been set. The elements in the given array are ChargingRuleInstall objects.
-
setChargingRuleInstall
void setChargingRuleInstall(ChargingRuleInstall chargingRuleInstall)
Sets a single Charging-Rule-Install AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifchargingRuleInstall
isnull
.
-
setChargingRuleInstalls
void setChargingRuleInstalls(ChargingRuleInstall[] chargingRuleInstalls)
Sets the set of Charging-Rule-Install 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 getChargingRuleInstalls() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifchargingRuleInstalls
isnull
.
-
removeChargingRuleInstalls
void removeChargingRuleInstalls()
Removes all Charging-Rule-Install AVPs from the message. If no Charging-Rule-Install AVPs are present, this method returns silently.
-
hasChargingInformation
boolean hasChargingInformation()
Returns true if the Charging-Information AVP is present in the message.
-
getChargingInformation
ChargingInformation getChargingInformation()
Returns the value of the Charging-Information AVP, of type Grouped.- Returns:
- the value of the Charging-Information AVP or null if it has not been set on this message
-
setChargingInformation
void setChargingInformation(ChargingInformation chargingInformation)
Sets the value of the Charging-Information AVP, of type Grouped.- Throws:
NullPointerException
- ifchargingInformation
isnull
.
-
removeChargingInformation
void removeChargingInformation()
Removes the Charging-Information AVP from the message. If the Charging-Information AVP is not present, this method returns silently.
-
hasOnline
boolean hasOnline()
Returns true if the Online AVP is present in the message.
-
getOnline
Online getOnline()
Returns the value of the Online AVP, of type Enumerated.- Returns:
- the value of the Online AVP or null if it has not been set on this message
-
setOnline
void setOnline(Online online)
Sets the value of the Online AVP, of type Enumerated.- Throws:
NullPointerException
- ifonline
isnull
.
-
removeOnline
void removeOnline()
Removes the Online AVP from the message. If the Online AVP is not present, this method returns silently.
-
hasOffline
boolean hasOffline()
Returns true if the Offline AVP is present in the message.
-
getOffline
Offline getOffline()
Returns the value of the Offline AVP, of type Enumerated.- Returns:
- the value of the Offline AVP or null if it has not been set on this message
-
setOffline
void setOffline(Offline offline)
Sets the value of the Offline AVP, of type Enumerated.- Throws:
NullPointerException
- ifoffline
isnull
.
-
removeOffline
void removeOffline()
Removes the Offline AVP from the message. If the Offline AVP is not present, this method returns silently.
-
getQosInformations
QosInformation[] getQosInformations()
Returns the set of QoS-Information AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no QoS-Information AVPs have been set. The elements in the given array are QosInformation objects.
-
setQosInformation
void setQosInformation(QosInformation qosInformation)
Sets a single QoS-Information AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifqosInformation
isnull
.
-
setQosInformations
void setQosInformations(QosInformation[] qosInformations)
Sets the set of QoS-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 getQosInformations() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifqosInformations
isnull
.
-
removeQosInformations
void removeQosInformations()
Removes all QoS-Information AVPs from the message. If no QoS-Information AVPs are present, this method returns silently.
-
hasRevalidationTime
boolean hasRevalidationTime()
Returns true if the Revalidation-Time AVP is present in the message.
-
getRevalidationTime
Date getRevalidationTime()
Returns the value of the Revalidation-Time AVP, of type Time.- Returns:
- the value of the Revalidation-Time AVP or null if it has not been set on this message
-
setRevalidationTime
void setRevalidationTime(Date revalidationTime)
Sets the value of the Revalidation-Time AVP, of type Time.- Throws:
NullPointerException
- ifrevalidationTime
isnull
.
-
removeRevalidationTime
void removeRevalidationTime()
Removes the Revalidation-Time AVP from the message. If the Revalidation-Time AVP is not present, this method returns silently.
-
hasDefaultEpsBearerQos
boolean hasDefaultEpsBearerQos()
Returns true if the Default-EPS-Bearer-QoS AVP is present in the message.
-
getDefaultEpsBearerQos
DefaultEpsBearerQos getDefaultEpsBearerQos()
Returns the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.- Returns:
- the value of the Default-EPS-Bearer-QoS AVP or null if it has not been set on this message
-
setDefaultEpsBearerQos
void setDefaultEpsBearerQos(DefaultEpsBearerQos defaultEpsBearerQos)
Sets the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.- Throws:
NullPointerException
- ifdefaultEpsBearerQos
isnull
.
-
removeDefaultEpsBearerQos
void removeDefaultEpsBearerQos()
Removes the Default-EPS-Bearer-QoS AVP from the message. If the Default-EPS-Bearer-QoS AVP is not present, this method returns silently.
-
hasBearerUsage
boolean hasBearerUsage()
Returns true if the Bearer-Usage AVP is present in the message.
-
getBearerUsage
BearerUsage getBearerUsage()
Returns the value of the Bearer-Usage AVP, of type Enumerated.- Returns:
- the value of the Bearer-Usage AVP or null if it has not been set on this message
-
setBearerUsage
void setBearerUsage(BearerUsage bearerUsage)
Sets the value of the Bearer-Usage AVP, of type Enumerated.- Throws:
NullPointerException
- ifbearerUsage
isnull
.
-
removeBearerUsage
void removeBearerUsage()
Removes the Bearer-Usage AVP from the message. If the Bearer-Usage AVP is not present, this method returns silently.
-
hasTgppUserLocationInfo
boolean hasTgppUserLocationInfo()
Returns true if the TGPP-User-Location-Info AVP is present in the message.
-
getTgppUserLocationInfo
byte[] getTgppUserLocationInfo()
Returns the value of the TGPP-User-Location-Info AVP, of type OctetString.- Returns:
- the value of the TGPP-User-Location-Info AVP or null if it has not been set on this message
-
setTgppUserLocationInfo
void setTgppUserLocationInfo(byte[] tgppUserLocationInfo)
Sets the value of the TGPP-User-Location-Info AVP, of type OctetString.- Throws:
NullPointerException
- iftgppUserLocationInfo
isnull
.
-
removeTgppUserLocationInfo
void removeTgppUserLocationInfo()
Removes the TGPP-User-Location-Info AVP from the message. If the TGPP-User-Location-Info AVP is not present, this method returns silently.
-
getUsageMonitoringInformations
UsageMonitoringInformation[] getUsageMonitoringInformations()
Returns the set of Usage-Monitoring-Information AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Usage-Monitoring-Information AVPs have been set. The elements in the given array are UsageMonitoringInformation objects.
-
setUsageMonitoringInformation
void setUsageMonitoringInformation(UsageMonitoringInformation usageMonitoringInformation)
Sets a single Usage-Monitoring-Information AVP in the message, of type Grouped.- Throws:
NullPointerException
- ifusageMonitoringInformation
isnull
.
-
setUsageMonitoringInformations
void setUsageMonitoringInformations(UsageMonitoringInformation[] usageMonitoringInformations)
Sets the set of Usage-Monitoring-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 getUsageMonitoringInformations() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifusageMonitoringInformations
isnull
.
-
removeUsageMonitoringInformations
void removeUsageMonitoringInformations()
Removes all Usage-Monitoring-Information AVPs from the message. If no Usage-Monitoring-Information AVPs are present, this method returns silently.
-
getCsgInformationReportings
CsgInformationReporting[] getCsgInformationReportings()
Returns the set of CSG-Information-Reporting AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no CSG-Information-Reporting AVPs have been set. The elements in the given array are CsgInformationReporting objects.
-
setCsgInformationReporting
void setCsgInformationReporting(CsgInformationReporting csgInformationReporting)
Sets a single CSG-Information-Reporting AVP in the message, of type Enumerated.- Throws:
NullPointerException
- ifcsgInformationReporting
isnull
.
-
setCsgInformationReportings
void setCsgInformationReportings(CsgInformationReporting[] csgInformationReportings)
Sets the set of CSG-Information-Reporting 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 getCsgInformationReportings() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- ifcsgInformationReportings
isnull
.
-
removeCsgInformationReportings
void removeCsgInformationReportings()
Removes all CSG-Information-Reporting AVPs from the message. If no CSG-Information-Reporting AVPs are present, this method returns silently.
-
hasUserCsgInformation
boolean hasUserCsgInformation()
Returns true if the User-CSG-Information AVP is present in the message.
-
getUserCsgInformation
UserCsgInformation getUserCsgInformation()
Returns the value of the User-CSG-Information AVP, of type Grouped.- Returns:
- the value of the User-CSG-Information AVP or null if it has not been set on this message
-
setUserCsgInformation
void setUserCsgInformation(UserCsgInformation userCsgInformation)
Sets the value of the User-CSG-Information AVP, of type Grouped.- Throws:
NullPointerException
- ifuserCsgInformation
isnull
.
-
removeUserCsgInformation
void removeUserCsgInformation()
Removes the User-CSG-Information AVP from the message. If the User-CSG-Information AVP is not present, this method returns silently.
-
hasErrorMessage
boolean hasErrorMessage()
Returns true if the Error-Message AVP is present in the message.
-
getErrorMessage
String getErrorMessage()
Returns the value of the Error-Message AVP, of type UTF8String.- Returns:
- the value of the Error-Message AVP or null if it has not been set on this message
-
setErrorMessage
void setErrorMessage(String errorMessage)
Sets the value of the Error-Message AVP, of type UTF8String.- Throws:
NullPointerException
- iferrorMessage
isnull
.
-
removeErrorMessage
void removeErrorMessage()
Removes the Error-Message AVP from the message. If the Error-Message AVP is not present, this method returns silently.
-
hasErrorReportingHost
boolean hasErrorReportingHost()
Returns true if the Error-Reporting-Host AVP is present in the message.
-
getErrorReportingHost
DiameterIdentity getErrorReportingHost()
Returns the value of the Error-Reporting-Host AVP, of type DiameterIdentity.- Returns:
- the value of the Error-Reporting-Host AVP or null if it has not been set on this message
-
setErrorReportingHost
void setErrorReportingHost(DiameterIdentity errorReportingHost)
Sets the value of the Error-Reporting-Host AVP, of type DiameterIdentity.- Throws:
NullPointerException
- iferrorReportingHost
isnull
.
-
removeErrorReportingHost
void removeErrorReportingHost()
Removes the Error-Reporting-Host AVP from the message. If the Error-Reporting-Host AVP is not present, this method returns silently.
-
getFailedAvps
FailedAvp[] getFailedAvps()
Returns the set of Failed-AVP AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Failed-AVP AVPs have been set. The elements in the given array are FailedAvp objects.
-
setFailedAvp
void setFailedAvp(FailedAvp failedAvp)
Sets a single Failed-AVP AVP in the message, of type Grouped.- Throws:
NullPointerException
- iffailedAvp
isnull
.
-
setFailedAvps
void setFailedAvps(FailedAvp[] failedAvps)
Sets the set of Failed-AVP 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 getFailedAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException
- iffailedAvps
isnull
.
-
removeFailedAvps
void removeFailedAvps()
Removes all Failed-AVP AVPs from the message. If no Failed-AVP AVPs are present, this method returns silently.
-
getProxyInfos
ProxyInfo[] getProxyInfos()
Returns the set of Proxy-Info AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Proxy-Info AVPs have been set. The elements in the given array are ProxyInfo objects.- Specified by:
getProxyInfos
in interfaceCreditControlMessage
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- Specified by:
setProxyInfo
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifproxyInfo
isnull
.
-
setProxyInfos
void setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info 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 getProxyInfos() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setProxyInfos
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifproxyInfos
isnull
.
-
removeProxyInfos
void removeProxyInfos()
Removes all Proxy-Info AVPs from the message. If no Proxy-Info AVPs are present, this method returns silently.
-
getRouteRecords
DiameterIdentity[] getRouteRecords()
Returns the set of Route-Record AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Route-Record AVPs have been set. The elements in the given array are DiameterIdentity objects.- Specified by:
getRouteRecords
in interfaceCreditControlMessage
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- Specified by:
setRouteRecord
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifrouteRecord
isnull
.
-
setRouteRecords
void setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record 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 getRouteRecords() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setRouteRecords
in interfaceCreditControlMessage
- Throws:
NullPointerException
- ifrouteRecords
isnull
.
-
removeRouteRecords
void removeRouteRecords()
Removes all Route-Record AVPs from the message. If no Route-Record AVPs are 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 message. 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 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 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
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the message. If no extension AVPs are present, this method returns silently.
-
-