Interface ReAuthRequest
-
- All Superinterfaces:
Cloneable
,DiameterMessage
public interface ReAuthRequest extends DiameterMessage
Defines an interface representing the Re-Auth-Request command. From the Diameter Gx Reference Point Protocol Details (TGPP TS 29.212 V10.1.0) specification:5.6.4 Re-Auth-Request (RAR) Command The RAR command, indicated by the Command-Code field set to 258 and the 'R' bit set in the Command Flags field, is sent by the PCRF to the BBERF/PCEF in order to provision QoS/PCC rules using the PUSH procedure initiate the provision of unsolicited QoS/PCC rules. It is used to provision QoS/PCC rules, event triggers and event report indications for the session. If the PCRF performs the bearer binding, PCC rules will be provisioned at bearer level. Message Format: <Re-Auth-Request> ::= < Diameter Header: 258, REQ, PXY > < Session-Id > { Auth-Application-Id } { Origin-Host } { Origin-Realm } { Destination-Realm } { Destination-Host } { Re-Auth-Request-Type } [ Session-Release-Cause ] [ Origin-State-Id ] *[ Event-Trigger ] [ Event-Report-Indication ] *[ Charging-Rule-Remove ] *[ Charging-Rule-Install ] [ Default-EPS-Bearer-QoS ] *[ QoS-Information ] [ Revalidation-Time ] *[ Usage-Monitoring-Information ] *[ 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.ChargingRuleInstall[]
getChargingRuleInstalls()
Returns the set of Charging-Rule-Install AVPs.ChargingRuleRemove[]
getChargingRuleRemoves()
Returns the set of Charging-Rule-Remove AVPs.DefaultEpsBearerQos
getDefaultEpsBearerQos()
Returns the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.DiameterIdentity
getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity.DiameterIdentity
getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity.EventReportIndication
getEventReportIndication()
Returns the value of the Event-Report-Indication AVP, of type Grouped.EventTrigger[]
getEventTriggers()
Returns the set of Event-Trigger AVPs.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.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.ReAuthRequestType
getReAuthRequestType()
Returns the value of the Re-Auth-Request-Type AVP, of type Enumerated.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.SessionReleaseCause
getSessionReleaseCause()
Returns the value of the Session-Release-Cause AVP, of type Enumerated.UsageMonitoringInformation[]
getUsageMonitoringInformations()
Returns the set of Usage-Monitoring-Information AVPs.boolean
hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.boolean
hasDefaultEpsBearerQos()
Returns true if the Default-EPS-Bearer-QoS AVP is present in the message.boolean
hasDestinationHost()
Returns true if the Destination-Host AVP is present in the message.boolean
hasDestinationRealm()
Returns true if the Destination-Realm AVP is present in the message.boolean
hasEventReportIndication()
Returns true if the Event-Report-Indication 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
hasReAuthRequestType()
Returns true if the Re-Auth-Request-Type 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
hasSessionReleaseCause()
Returns true if the Session-Release-Cause AVP is present in the message.void
removeAuthApplicationId()
Removes the Auth-Application-Id 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
removeDefaultEpsBearerQos()
Removes the Default-EPS-Bearer-QoS AVP from the message.void
removeDestinationHost()
Removes the Destination-Host AVP from the message.void
removeDestinationRealm()
Removes the Destination-Realm AVP from the message.void
removeEventReportIndication()
Removes the Event-Report-Indication AVP from the message.void
removeEventTriggers()
Removes all Event-Trigger AVPs from the message.void
removeExtensionAvps()
Removes all extension AVPs 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
removeReAuthRequestType()
Removes the Re-Auth-Request-Type 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
removeSessionReleaseCause()
Removes the Session-Release-Cause AVP from the message.void
removeUsageMonitoringInformations()
Removes all Usage-Monitoring-Information AVPs from the message.void
setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.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
setDefaultEpsBearerQos(DefaultEpsBearerQos defaultEpsBearerQos)
Sets the value of the Default-EPS-Bearer-QoS AVP, of type Grouped.void
setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.void
setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.void
setEventReportIndication(EventReportIndication eventReportIndication)
Sets the value of the Event-Report-Indication AVP, of type Grouped.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
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.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
setReAuthRequestType(ReAuthRequestType reAuthRequestType)
Sets the value of the Re-Auth-Request-Type AVP, of type Enumerated.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
setSessionReleaseCause(SessionReleaseCause sessionReleaseCause)
Sets the value of the Session-Release-Cause AVP, of type Enumerated.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.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterMessage
clone, getAvps, getCommand, getHeader
-
-
-
-
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.
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.- 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 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.
-
getAuthApplicationId
long getAuthApplicationId()
Returns the value of the Auth-Application-Id AVP, of type Unsigned32. UsehasAuthApplicationId()
to check the existence of this AVP.- 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.
-
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.
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.- 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 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.
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.- 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 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.
-
hasDestinationRealm
boolean hasDestinationRealm()
Returns true if the Destination-Realm AVP is present in the message.
-
getDestinationRealm
DiameterIdentity getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity.- Specified by:
getDestinationRealm
in interfaceDiameterMessage
- Returns:
- the value of the Destination-Realm AVP or null if it has not been set on this message
-
setDestinationRealm
void setDestinationRealm(DiameterIdentity destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity.- Specified by:
setDestinationRealm
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifdestinationRealm
isnull
.
-
removeDestinationRealm
void removeDestinationRealm()
Removes the Destination-Realm AVP from the message. If the Destination-Realm AVP is not present, this method returns silently.
-
hasDestinationHost
boolean hasDestinationHost()
Returns true if the Destination-Host AVP is present in the message.
-
getDestinationHost
DiameterIdentity getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity.- Specified by:
getDestinationHost
in interfaceDiameterMessage
- Returns:
- the value of the Destination-Host AVP or null if it has not been set on this message
-
setDestinationHost
void setDestinationHost(DiameterIdentity destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity.- Specified by:
setDestinationHost
in interfaceDiameterMessage
- Throws:
NullPointerException
- ifdestinationHost
isnull
.
-
removeDestinationHost
void removeDestinationHost()
Removes the Destination-Host AVP from the message. If the Destination-Host AVP is not present, this method returns silently.
-
hasReAuthRequestType
boolean hasReAuthRequestType()
Returns true if the Re-Auth-Request-Type AVP is present in the message.
-
getReAuthRequestType
ReAuthRequestType getReAuthRequestType()
Returns the value of the Re-Auth-Request-Type AVP, of type Enumerated.- Returns:
- the value of the Re-Auth-Request-Type AVP or null if it has not been set on this message
-
setReAuthRequestType
void setReAuthRequestType(ReAuthRequestType reAuthRequestType)
Sets the value of the Re-Auth-Request-Type AVP, of type Enumerated.- Throws:
NullPointerException
- ifreAuthRequestType
isnull
.
-
removeReAuthRequestType
void removeReAuthRequestType()
Removes the Re-Auth-Request-Type AVP from the message. If the Re-Auth-Request-Type AVP is not present, this method returns silently.
-
hasSessionReleaseCause
boolean hasSessionReleaseCause()
Returns true if the Session-Release-Cause AVP is present in the message.
-
getSessionReleaseCause
SessionReleaseCause getSessionReleaseCause()
Returns the value of the Session-Release-Cause AVP, of type Enumerated.- Returns:
- the value of the Session-Release-Cause AVP or null if it has not been set on this message
-
setSessionReleaseCause
void setSessionReleaseCause(SessionReleaseCause sessionReleaseCause)
Sets the value of the Session-Release-Cause AVP, of type Enumerated.- Throws:
NullPointerException
- ifsessionReleaseCause
isnull
.
-
removeSessionReleaseCause
void removeSessionReleaseCause()
Removes the Session-Release-Cause AVP from the message. If the Session-Release-Cause AVP is not 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.
-
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.
-
hasEventReportIndication
boolean hasEventReportIndication()
Returns true if the Event-Report-Indication AVP is present in the message.
-
getEventReportIndication
EventReportIndication getEventReportIndication()
Returns the value of the Event-Report-Indication AVP, of type Grouped.- Returns:
- the value of the Event-Report-Indication AVP or null if it has not been set on this message
-
setEventReportIndication
void setEventReportIndication(EventReportIndication eventReportIndication)
Sets the value of the Event-Report-Indication AVP, of type Grouped.- Throws:
NullPointerException
- ifeventReportIndication
isnull
.
-
removeEventReportIndication
void removeEventReportIndication()
Removes the Event-Report-Indication AVP from the message. If the Event-Report-Indication 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.
-
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.
-
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.
-
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.
-
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.
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- 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.- 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.
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- 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.- 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.
-
-