Interface CreditControlRequest
-
- All Superinterfaces:
Cloneable,CreditControlMessage,DiameterMessage
public interface CreditControlRequest extends CreditControlMessage
Defines an interface representing the Credit-Control-Request command. From the Diameter Ro Reference Point Protocol Details (3GPP TS 32.299 V8.13.0) specification:6.4.2 Credit-Control-Request Message The CCR messages, indicated by the Command-Code field set to 272 is sent by the CTF to the OCF in order to request credits for the request bearer / subsystem /service. The CCR message format is defined according to IETF RFC 4006 [402] as follows: <Credit-Control-Request> ::= < Diameter Header: 272, REQ, PXY > < Session-Id > { Origin-Host } { Origin-Realm } { Destination-Realm } { Auth-Application-Id } { Service-Context-Id } { CC-Request-Type } { CC-Request-Number } [ Destination-Host ] [ User-Name ] [ Origin-State-Id ] [ Event-Timestamp ] *[ Subscription-Id ] [ Termination-Cause ] [ Requested-Action ] [ AoC-Request-Type ] [ Multiple-Services-Indicator ] *[ Multiple-Services-Credit-Control ] [ CC-Correlation-Id ] [ User-Equipment-Info ] *[ Proxy-Info ] *[ Route-Record ] [ Service-Information ] *[ AVP ]
-
-
Field Summary
Fields Modifier and Type Field Description static intcommandCode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AocRequestTypegetAocRequestType()Returns the value of the AoC-Request-Type AVP, of type Enumerated.longgetAuthApplicationId()Returns the value of the Auth-Application-Id AVP, of type Unsigned32.byte[]getCcCorrelationId()Returns the value of the CC-Correlation-Id AVP, of type OctetString.longgetCcRequestNumber()Returns the value of the CC-Request-Number AVP, of type Unsigned32.CcRequestTypegetCcRequestType()Returns the value of the CC-Request-Type AVP, of type Enumerated.DiameterIdentitygetDestinationHost()Returns the value of the Destination-Host AVP, of type DiameterIdentity.DiameterIdentitygetDestinationRealm()Returns the value of the Destination-Realm AVP, of type DiameterIdentity.DategetEventTimestamp()Returns the value of the Event-Timestamp AVP, of type Time.DiameterAvp[]getExtensionAvps()Returns the set of extension AVPs.MultipleServicesCreditControl[]getMultipleServicesCreditControls()Returns the set of Multiple-Services-Credit-Control AVPs.MultipleServicesIndicatorgetMultipleServicesIndicator()Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.DiameterIdentitygetOriginHost()Returns the value of the Origin-Host AVP, of type DiameterIdentity.DiameterIdentitygetOriginRealm()Returns the value of the Origin-Realm AVP, of type DiameterIdentity.longgetOriginStateId()Returns the value of the Origin-State-Id AVP, of type Unsigned32.ProxyInfo[]getProxyInfos()Returns the set of Proxy-Info AVPs.RequestedActiongetRequestedAction()Returns the value of the Requested-Action AVP, of type Enumerated.DiameterIdentity[]getRouteRecords()Returns the set of Route-Record AVPs.StringgetServiceContextId()Returns the value of the Service-Context-Id AVP, of type UTF8String.ServiceInformationgetServiceInformation()Returns the value of the Service-Information AVP, of type Grouped.StringgetSessionId()Returns the value of the Session-Id AVP, of type UTF8String.SubscriptionId[]getSubscriptionIds()Returns the set of Subscription-Id AVPs.TerminationCausegetTerminationCause()Returns the value of the Termination-Cause AVP, of type Enumerated.UserEquipmentInfogetUserEquipmentInfo()Returns the value of the User-Equipment-Info AVP, of type Grouped.StringgetUserName()Returns the value of the User-Name AVP, of type UTF8String.booleanhasAocRequestType()Returns true if the AoC-Request-Type AVP is present in the message.booleanhasAuthApplicationId()Returns true if the Auth-Application-Id AVP is present in the message.booleanhasCcCorrelationId()Returns true if the CC-Correlation-Id AVP is present in the message.booleanhasCcRequestNumber()Returns true if the CC-Request-Number AVP is present in the message.booleanhasCcRequestType()Returns true if the CC-Request-Type AVP is present in the message.booleanhasDestinationHost()Returns true if the Destination-Host AVP is present in the message.booleanhasDestinationRealm()Returns true if the Destination-Realm AVP is present in the message.booleanhasEventTimestamp()Returns true if the Event-Timestamp AVP is present in the message.booleanhasMultipleServicesIndicator()Returns true if the Multiple-Services-Indicator AVP is present in the message.booleanhasOriginHost()Returns true if the Origin-Host AVP is present in the message.booleanhasOriginRealm()Returns true if the Origin-Realm AVP is present in the message.booleanhasOriginStateId()Returns true if the Origin-State-Id AVP is present in the message.booleanhasRequestedAction()Returns true if the Requested-Action AVP is present in the message.booleanhasServiceContextId()Returns true if the Service-Context-Id AVP is present in the message.booleanhasServiceInformation()Returns true if the Service-Information AVP is present in the message.booleanhasSessionId()Returns true if the Session-Id AVP is present in the message.booleanhasTerminationCause()Returns true if the Termination-Cause AVP is present in the message.booleanhasUserEquipmentInfo()Returns true if the User-Equipment-Info AVP is present in the message.booleanhasUserName()Returns true if the User-Name AVP is present in the message.voidremoveAocRequestType()Removes the AoC-Request-Type AVP from the message.voidremoveAuthApplicationId()Removes the Auth-Application-Id AVP from the message.voidremoveCcCorrelationId()Removes the CC-Correlation-Id AVP from the message.voidremoveCcRequestNumber()Removes the CC-Request-Number AVP from the message.voidremoveCcRequestType()Removes the CC-Request-Type AVP from the message.voidremoveDestinationHost()Removes the Destination-Host AVP from the message.voidremoveDestinationRealm()Removes the Destination-Realm AVP from the message.voidremoveEventTimestamp()Removes the Event-Timestamp AVP from the message.voidremoveExtensionAvps()Removes all extension AVPs from the message.voidremoveMultipleServicesCreditControls()Removes all Multiple-Services-Credit-Control AVPs from the message.voidremoveMultipleServicesIndicator()Removes the Multiple-Services-Indicator AVP from the message.voidremoveOriginHost()Removes the Origin-Host AVP from the message.voidremoveOriginRealm()Removes the Origin-Realm AVP from the message.voidremoveOriginStateId()Removes the Origin-State-Id AVP from the message.voidremoveProxyInfos()Removes all Proxy-Info AVPs from the message.voidremoveRequestedAction()Removes the Requested-Action AVP from the message.voidremoveRouteRecords()Removes all Route-Record AVPs from the message.voidremoveServiceContextId()Removes the Service-Context-Id AVP from the message.voidremoveServiceInformation()Removes the Service-Information AVP from the message.voidremoveSessionId()Removes the Session-Id AVP from the message.voidremoveSubscriptionIds()Removes all Subscription-Id AVPs from the message.voidremoveTerminationCause()Removes the Termination-Cause AVP from the message.voidremoveUserEquipmentInfo()Removes the User-Equipment-Info AVP from the message.voidremoveUserName()Removes the User-Name AVP from the message.voidsetAocRequestType(AocRequestType aocRequestType)Sets the value of the AoC-Request-Type AVP, of type Enumerated.voidsetAuthApplicationId(long authApplicationId)Sets the value of the Auth-Application-Id AVP, of type Unsigned32.voidsetCcCorrelationId(byte[] ccCorrelationId)Sets the value of the CC-Correlation-Id AVP, of type OctetString.voidsetCcRequestNumber(long ccRequestNumber)Sets the value of the CC-Request-Number AVP, of type Unsigned32.voidsetCcRequestType(CcRequestType ccRequestType)Sets the value of the CC-Request-Type AVP, of type Enumerated.voidsetDestinationHost(DiameterIdentity destinationHost)Sets the value of the Destination-Host AVP, of type DiameterIdentity.voidsetDestinationRealm(DiameterIdentity destinationRealm)Sets the value of the Destination-Realm AVP, of type DiameterIdentity.voidsetEventTimestamp(Date eventTimestamp)Sets the value of the Event-Timestamp AVP, of type Time.voidsetExtensionAvps(DiameterAvp[] avps)Sets the set of extension AVPs with all the values in the given array.voidsetMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.voidsetMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)Sets the set of Multiple-Services-Credit-Control AVPs, with all the values in the given array.voidsetMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.voidsetOriginHost(DiameterIdentity originHost)Sets the value of the Origin-Host AVP, of type DiameterIdentity.voidsetOriginRealm(DiameterIdentity originRealm)Sets the value of the Origin-Realm AVP, of type DiameterIdentity.voidsetOriginStateId(long originStateId)Sets the value of the Origin-State-Id AVP, of type Unsigned32.voidsetProxyInfo(ProxyInfo proxyInfo)Sets a single Proxy-Info AVP in the message, of type Grouped.voidsetProxyInfos(ProxyInfo[] proxyInfos)Sets the set of Proxy-Info AVPs, with all the values in the given array.voidsetRequestedAction(RequestedAction requestedAction)Sets the value of the Requested-Action AVP, of type Enumerated.voidsetRouteRecord(DiameterIdentity routeRecord)Sets a single Route-Record AVP in the message, of type DiameterIdentity.voidsetRouteRecords(DiameterIdentity[] routeRecords)Sets the set of Route-Record AVPs, with all the values in the given array.voidsetServiceContextId(String serviceContextId)Sets the value of the Service-Context-Id AVP, of type UTF8String.voidsetServiceInformation(ServiceInformation serviceInformation)Sets the value of the Service-Information AVP, of type Grouped.voidsetSessionId(String sessionId)Sets the value of the Session-Id AVP, of type UTF8String.voidsetSubscriptionId(SubscriptionId subscriptionId)Sets a single Subscription-Id AVP in the message, of type Grouped.voidsetSubscriptionIds(SubscriptionId[] subscriptionIds)Sets the set of Subscription-Id AVPs, with all the values in the given array.voidsetTerminationCause(TerminationCause terminationCause)Sets the value of the Termination-Cause AVP, of type Enumerated.voidsetUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)Sets the value of the User-Equipment-Info AVP, of type Grouped.voidsetUserName(String userName)Sets the value of the User-Name AVP, of type UTF8String.-
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.- Specified by:
hasSessionIdin interfaceCreditControlMessage
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.- Specified by:
getSessionIdin interfaceCreditControlMessage- Specified by:
getSessionIdin 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:
setSessionIdin interfaceCreditControlMessage- Specified by:
setSessionIdin interfaceDiameterMessage- Throws:
NullPointerException- ifsessionIdisnull.
-
removeSessionId
void removeSessionId()
Removes the Session-Id AVP from the message. If the Session-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:
hasOriginHostin interfaceCreditControlMessage
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
getOriginHostin interfaceCreditControlMessage- Specified by:
getOriginHostin 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:
setOriginHostin interfaceCreditControlMessage- Specified by:
setOriginHostin interfaceDiameterMessage- Throws:
NullPointerException- iforiginHostisnull.
-
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:
hasOriginRealmin interfaceCreditControlMessage
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
getOriginRealmin interfaceCreditControlMessage- Specified by:
getOriginRealmin 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:
setOriginRealmin interfaceCreditControlMessage- Specified by:
setOriginRealmin interfaceDiameterMessage- Throws:
NullPointerException- iforiginRealmisnull.
-
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:
getDestinationRealmin 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:
setDestinationRealmin interfaceDiameterMessage- Throws:
NullPointerException- ifdestinationRealmisnull.
-
removeDestinationRealm
void removeDestinationRealm()
Removes the Destination-Realm AVP from the message. If the Destination-Realm 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:
hasAuthApplicationIdin 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:
getAuthApplicationIdin 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:
setAuthApplicationIdin 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.
-
hasServiceContextId
boolean hasServiceContextId()
Returns true if the Service-Context-Id AVP is present in the message.
-
getServiceContextId
String getServiceContextId()
Returns the value of the Service-Context-Id AVP, of type UTF8String.- Returns:
- the value of the Service-Context-Id AVP or null if it has not been set on this message
-
setServiceContextId
void setServiceContextId(String serviceContextId)
Sets the value of the Service-Context-Id AVP, of type UTF8String.- Throws:
NullPointerException- ifserviceContextIdisnull.
-
removeServiceContextId
void removeServiceContextId()
Removes the Service-Context-Id AVP from the message. If the Service-Context-Id 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:
hasCcRequestTypein interfaceCreditControlMessage
-
getCcRequestType
CcRequestType getCcRequestType()
Returns the value of the CC-Request-Type AVP, of type Enumerated.- Specified by:
getCcRequestTypein 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:
setCcRequestTypein interfaceCreditControlMessage- Throws:
NullPointerException- ifccRequestTypeisnull.
-
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:
hasCcRequestNumberin 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:
getCcRequestNumberin 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:
setCcRequestNumberin 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.
-
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:
getDestinationHostin 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:
setDestinationHostin interfaceDiameterMessage- Throws:
NullPointerException- ifdestinationHostisnull.
-
removeDestinationHost
void removeDestinationHost()
Removes the Destination-Host AVP from the message. If the Destination-Host AVP is not present, this method returns silently.
-
hasUserName
boolean hasUserName()
Returns true if the User-Name AVP is present in the message.
-
getUserName
String getUserName()
Returns the value of the User-Name AVP, of type UTF8String.- Returns:
- the value of the User-Name AVP or null if it has not been set on this message
-
setUserName
void setUserName(String userName)
Sets the value of the User-Name AVP, of type UTF8String.- Throws:
NullPointerException- ifuserNameisnull.
-
removeUserName
void removeUserName()
Removes the User-Name AVP from the message. If the User-Name 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.
-
hasEventTimestamp
boolean hasEventTimestamp()
Returns true if the Event-Timestamp AVP is present in the message.
-
getEventTimestamp
Date getEventTimestamp()
Returns the value of the Event-Timestamp AVP, of type Time.- Returns:
- the value of the Event-Timestamp AVP or null if it has not been set on this message
-
setEventTimestamp
void setEventTimestamp(Date eventTimestamp)
Sets the value of the Event-Timestamp AVP, of type Time.- Throws:
NullPointerException- ifeventTimestampisnull.
-
removeEventTimestamp
void removeEventTimestamp()
Removes the Event-Timestamp AVP from the message. If the Event-Timestamp AVP is not present, this method returns silently.
-
getSubscriptionIds
SubscriptionId[] getSubscriptionIds()
Returns the set of Subscription-Id AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Subscription-Id AVPs have been set. The elements in the given array are SubscriptionId objects.
-
setSubscriptionId
void setSubscriptionId(SubscriptionId subscriptionId)
Sets a single Subscription-Id AVP in the message, of type Grouped.- Throws:
NullPointerException- ifsubscriptionIdisnull.
-
setSubscriptionIds
void setSubscriptionIds(SubscriptionId[] subscriptionIds)
Sets the set of Subscription-Id 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 getSubscriptionIds() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException- ifsubscriptionIdsisnull.
-
removeSubscriptionIds
void removeSubscriptionIds()
Removes all Subscription-Id AVPs from the message. If no Subscription-Id AVPs are present, this method returns silently.
-
hasTerminationCause
boolean hasTerminationCause()
Returns true if the Termination-Cause AVP is present in the message.
-
getTerminationCause
TerminationCause getTerminationCause()
Returns the value of the Termination-Cause AVP, of type Enumerated.- Returns:
- the value of the Termination-Cause AVP or null if it has not been set on this message
-
setTerminationCause
void setTerminationCause(TerminationCause terminationCause)
Sets the value of the Termination-Cause AVP, of type Enumerated.- Throws:
NullPointerException- ifterminationCauseisnull.
-
removeTerminationCause
void removeTerminationCause()
Removes the Termination-Cause AVP from the message. If the Termination-Cause AVP is not present, this method returns silently.
-
hasRequestedAction
boolean hasRequestedAction()
Returns true if the Requested-Action AVP is present in the message.
-
getRequestedAction
RequestedAction getRequestedAction()
Returns the value of the Requested-Action AVP, of type Enumerated.- Returns:
- the value of the Requested-Action AVP or null if it has not been set on this message
-
setRequestedAction
void setRequestedAction(RequestedAction requestedAction)
Sets the value of the Requested-Action AVP, of type Enumerated.- Throws:
NullPointerException- ifrequestedActionisnull.
-
removeRequestedAction
void removeRequestedAction()
Removes the Requested-Action AVP from the message. If the Requested-Action AVP is not present, this method returns silently.
-
hasAocRequestType
boolean hasAocRequestType()
Returns true if the AoC-Request-Type AVP is present in the message.
-
getAocRequestType
AocRequestType getAocRequestType()
Returns the value of the AoC-Request-Type AVP, of type Enumerated.- Returns:
- the value of the AoC-Request-Type AVP or null if it has not been set on this message
-
setAocRequestType
void setAocRequestType(AocRequestType aocRequestType)
Sets the value of the AoC-Request-Type AVP, of type Enumerated.- Throws:
NullPointerException- ifaocRequestTypeisnull.
-
removeAocRequestType
void removeAocRequestType()
Removes the AoC-Request-Type AVP from the message. If the AoC-Request-Type AVP is not present, this method returns silently.
-
hasMultipleServicesIndicator
boolean hasMultipleServicesIndicator()
Returns true if the Multiple-Services-Indicator AVP is present in the message.
-
getMultipleServicesIndicator
MultipleServicesIndicator getMultipleServicesIndicator()
Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated.- Returns:
- the value of the Multiple-Services-Indicator AVP or null if it has not been set on this message
-
setMultipleServicesIndicator
void setMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)
Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated.- Throws:
NullPointerException- ifmultipleServicesIndicatorisnull.
-
removeMultipleServicesIndicator
void removeMultipleServicesIndicator()
Removes the Multiple-Services-Indicator AVP from the message. If the Multiple-Services-Indicator AVP is not present, this method returns silently.
-
getMultipleServicesCreditControls
MultipleServicesCreditControl[] getMultipleServicesCreditControls()
Returns the set of Multiple-Services-Credit-Control AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Multiple-Services-Credit-Control AVPs have been set. The elements in the given array are MultipleServicesCreditControl objects.
-
setMultipleServicesCreditControl
void setMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)
Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.- Throws:
NullPointerException- ifmultipleServicesCreditControlisnull.
-
setMultipleServicesCreditControls
void setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
Sets the set of Multiple-Services-Credit-Control 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 getMultipleServicesCreditControls() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException- ifmultipleServicesCreditControlsisnull.
-
removeMultipleServicesCreditControls
void removeMultipleServicesCreditControls()
Removes all Multiple-Services-Credit-Control AVPs from the message. If no Multiple-Services-Credit-Control AVPs are present, this method returns silently.
-
hasCcCorrelationId
boolean hasCcCorrelationId()
Returns true if the CC-Correlation-Id AVP is present in the message.
-
getCcCorrelationId
byte[] getCcCorrelationId()
Returns the value of the CC-Correlation-Id AVP, of type OctetString.- Returns:
- the value of the CC-Correlation-Id AVP or null if it has not been set on this message
-
setCcCorrelationId
void setCcCorrelationId(byte[] ccCorrelationId)
Sets the value of the CC-Correlation-Id AVP, of type OctetString.- Throws:
NullPointerException- ifccCorrelationIdisnull.
-
removeCcCorrelationId
void removeCcCorrelationId()
Removes the CC-Correlation-Id AVP from the message. If the CC-Correlation-Id AVP is not present, this method returns silently.
-
hasUserEquipmentInfo
boolean hasUserEquipmentInfo()
Returns true if the User-Equipment-Info AVP is present in the message.
-
getUserEquipmentInfo
UserEquipmentInfo getUserEquipmentInfo()
Returns the value of the User-Equipment-Info AVP, of type Grouped.- Returns:
- the value of the User-Equipment-Info AVP or null if it has not been set on this message
-
setUserEquipmentInfo
void setUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)
Sets the value of the User-Equipment-Info AVP, of type Grouped.- Throws:
NullPointerException- ifuserEquipmentInfoisnull.
-
removeUserEquipmentInfo
void removeUserEquipmentInfo()
Removes the User-Equipment-Info AVP from the message. If the User-Equipment-Info AVP is not 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:
getProxyInfosin interfaceCreditControlMessage
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- Specified by:
setProxyInfoin interfaceCreditControlMessage- Throws:
NullPointerException- ifproxyInfoisnull.
-
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:
setProxyInfosin interfaceCreditControlMessage- Throws:
NullPointerException- ifproxyInfosisnull.
-
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:
getRouteRecordsin interfaceCreditControlMessage
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- Specified by:
setRouteRecordin interfaceCreditControlMessage- Throws:
NullPointerException- ifrouteRecordisnull.
-
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:
setRouteRecordsin interfaceCreditControlMessage- Throws:
NullPointerException- ifrouteRecordsisnull.
-
removeRouteRecords
void removeRouteRecords()
Removes all Route-Record AVPs from the message. If no Route-Record AVPs are present, this method returns silently.
-
hasServiceInformation
boolean hasServiceInformation()
Returns true if the Service-Information AVP is present in the message.
-
getServiceInformation
ServiceInformation getServiceInformation()
Returns the value of the Service-Information AVP, of type Grouped.- Returns:
- the value of the Service-Information AVP or null if it has not been set on this message
-
setServiceInformation
void setServiceInformation(ServiceInformation serviceInformation)
Sets the value of the Service-Information AVP, of type Grouped.- Throws:
NullPointerException- ifserviceInformationisnull.
-
removeServiceInformation
void removeServiceInformation()
Removes the Service-Information AVP from the message. If the Service-Information 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 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- ifavpsisnull.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the message. If no extension AVPs are present, this method returns silently.
-
-