public interface CreditControlRequest extends CreditControlMessage
3.1 Credit-Control-Request (CCR) Command
The Credit-Control-Request message (CCR) is indicated by the
command-code field being set to 272 and the 'R' bit being set in the
Command Flags field. It is used between the Diameter credit-control
client and the credit-control server to request credit authorization
for a given service.
The Auth-Application-Id MUST be set to the value 4, indicating the
Diameter credit-control application.
Message Format
<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 ]
[ CC-Sub-Session-Id ]
[ Acct-Multi-Session-Id ]
[ Origin-State-Id ]
[ Event-Timestamp ]
*[ Subscription-Id ]
[ Service-Identifier ]
[ Termination-Cause ]
[ Requested-Service-Unit ]
[ Requested-Action ]
*[ Used-Service-Unit ]
[ Multiple-Services-Indicator ]
*[ Multiple-Services-Credit-Control ]
*[ Service-Parameter-Info ]
[ CC-Correlation-Id ]
[ User-Equipment-Info ]
*[ Proxy-Info ]
*[ Route-Record ]
*[ AVP ]
| Modifier and Type | Field and Description |
|---|---|
static int |
commandCode |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAcctMultiSessionId()
Returns the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
|
long |
getAuthApplicationId()
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.
|
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.
|
long |
getCcSubSessionId()
Returns the value of the CC-Sub-Session-Id AVP, of type Unsigned64.
|
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.
|
java.util.Date |
getEventTimestamp()
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.
|
MultipleServicesIndicator |
getMultipleServicesIndicator()
Returns the value of the Multiple-Services-Indicator 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.
|
RequestedAction |
getRequestedAction()
Returns the value of the Requested-Action AVP, of type Enumerated.
|
RequestedServiceUnit |
getRequestedServiceUnit()
Returns the value of the Requested-Service-Unit AVP, of type Grouped.
|
DiameterIdentity[] |
getRouteRecords()
Returns the set of Route-Record AVPs.
|
java.lang.String |
getServiceContextId()
Returns the value of the Service-Context-Id AVP, of type UTF8String.
|
long |
getServiceIdentifier()
Returns the value of the Service-Identifier AVP, of type Unsigned32.
|
ServiceParameterInfo[] |
getServiceParameterInfos()
Returns the set of Service-Parameter-Info AVPs.
|
java.lang.String |
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.
|
SubscriptionId[] |
getSubscriptionIds()
Returns the set of Subscription-Id AVPs.
|
TerminationCause |
getTerminationCause()
Returns the value of the Termination-Cause AVP, of type Enumerated.
|
UsedServiceUnit[] |
getUsedServiceUnits()
Returns the set of Used-Service-Unit AVPs.
|
UserEquipmentInfo |
getUserEquipmentInfo()
Returns the value of the User-Equipment-Info AVP, of type Grouped.
|
java.lang.String |
getUserName()
Returns the value of the User-Name AVP, of type UTF8String.
|
boolean |
hasAcctMultiSessionId()
Returns true if the Acct-Multi-Session-Id AVP is present in the message.
|
boolean |
hasAuthApplicationId()
Returns true if the Auth-Application-Id AVP is present in the message.
|
boolean |
hasCcCorrelationId()
Returns true if the CC-Correlation-Id 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 |
hasCcSubSessionId()
Returns true if the CC-Sub-Session-Id 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 |
hasEventTimestamp()
Returns true if the Event-Timestamp AVP is present in the message.
|
boolean |
hasMultipleServicesIndicator()
Returns true if the Multiple-Services-Indicator 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 |
hasRequestedAction()
Returns true if the Requested-Action AVP is present in the message.
|
boolean |
hasRequestedServiceUnit()
Returns true if the Requested-Service-Unit AVP is present in the message.
|
boolean |
hasServiceContextId()
Returns true if the Service-Context-Id AVP is present in the message.
|
boolean |
hasServiceIdentifier()
Returns true if the Service-Identifier AVP is present in the message.
|
boolean |
hasSessionId()
Returns true if the Session-Id AVP is present in the message.
|
boolean |
hasTerminationCause()
Returns true if the Termination-Cause AVP is present in the message.
|
boolean |
hasUserEquipmentInfo()
Returns true if the User-Equipment-Info AVP is present in the message.
|
boolean |
hasUserName()
Returns true if the User-Name AVP is present in the message.
|
void |
removeAcctMultiSessionId()
Removes the Acct-Multi-Session-Id AVP from the message.
|
void |
removeAuthApplicationId()
Removes the Auth-Application-Id AVP from the message.
|
void |
removeCcCorrelationId()
Removes the CC-Correlation-Id 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 |
removeCcSubSessionId()
Removes the CC-Sub-Session-Id 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 |
removeEventTimestamp()
Removes the Event-Timestamp AVP from the message.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the message.
|
void |
removeMultipleServicesCreditControls()
Removes all Multiple-Services-Credit-Control AVPs from the message.
|
void |
removeMultipleServicesIndicator()
Removes the Multiple-Services-Indicator 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 |
removeRequestedAction()
Removes the Requested-Action AVP from the message.
|
void |
removeRequestedServiceUnit()
Removes the Requested-Service-Unit AVP from the message.
|
void |
removeRouteRecords()
Removes all Route-Record AVPs from the message.
|
void |
removeServiceContextId()
Removes the Service-Context-Id AVP from the message.
|
void |
removeServiceIdentifier()
Removes the Service-Identifier AVP from the message.
|
void |
removeServiceParameterInfos()
Removes all Service-Parameter-Info AVPs from the message.
|
void |
removeSessionId()
Removes the Session-Id AVP from the message.
|
void |
removeSubscriptionIds()
Removes all Subscription-Id AVPs from the message.
|
void |
removeTerminationCause()
Removes the Termination-Cause AVP from the message.
|
void |
removeUsedServiceUnits()
Removes all Used-Service-Unit AVPs from the message.
|
void |
removeUserEquipmentInfo()
Removes the User-Equipment-Info AVP from the message.
|
void |
removeUserName()
Removes the User-Name AVP from the message.
|
void |
setAcctMultiSessionId(java.lang.String acctMultiSessionId)
Sets the value of the Acct-Multi-Session-Id AVP, of type UTF8String.
|
void |
setAuthApplicationId(long authApplicationId)
Sets the value of the Auth-Application-Id AVP, of type Unsigned32.
|
void |
setCcCorrelationId(byte[] ccCorrelationId)
Sets the value of the CC-Correlation-Id AVP, of type OctetString.
|
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 |
setCcSubSessionId(long ccSubSessionId)
Sets the value of the CC-Sub-Session-Id AVP, of type Unsigned64.
|
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 |
setEventTimestamp(java.util.Date eventTimestamp)
Sets the value of the Event-Timestamp AVP, of type Time.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)
Sets a single Multiple-Services-Credit-Control AVP in the message, of type Grouped.
|
void |
setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
Sets the set of Multiple-Services-Credit-Control AVPs, with all the values in the given array.
|
void |
setMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)
Sets the value of the Multiple-Services-Indicator 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 |
setRequestedAction(RequestedAction requestedAction)
Sets the value of the Requested-Action AVP, of type Enumerated.
|
void |
setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
Sets the value of the Requested-Service-Unit AVP, of type Grouped.
|
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 |
setServiceContextId(java.lang.String serviceContextId)
Sets the value of the Service-Context-Id AVP, of type UTF8String.
|
void |
setServiceIdentifier(long serviceIdentifier)
Sets the value of the Service-Identifier AVP, of type Unsigned32.
|
void |
setServiceParameterInfo(ServiceParameterInfo serviceParameterInfo)
Sets a single Service-Parameter-Info AVP in the message, of type Grouped.
|
void |
setServiceParameterInfos(ServiceParameterInfo[] serviceParameterInfos)
Sets the set of Service-Parameter-Info AVPs, with all the values in the given array.
|
void |
setSessionId(java.lang.String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.
|
void |
setSubscriptionId(SubscriptionId subscriptionId)
Sets a single Subscription-Id AVP in the message, of type Grouped.
|
void |
setSubscriptionIds(SubscriptionId[] subscriptionIds)
Sets the set of Subscription-Id AVPs, with all the values in the given array.
|
void |
setTerminationCause(TerminationCause terminationCause)
Sets the value of the Termination-Cause AVP, of type Enumerated.
|
void |
setUsedServiceUnit(UsedServiceUnit usedServiceUnit)
Sets a single Used-Service-Unit AVP in the message, of type Grouped.
|
void |
setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
Sets the set of Used-Service-Unit AVPs, with all the values in the given array.
|
void |
setUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)
Sets the value of the User-Equipment-Info AVP, of type Grouped.
|
void |
setUserName(java.lang.String userName)
Sets the value of the User-Name AVP, of type UTF8String.
|
clone, getAvps, getCommand, getHeaderstatic final int commandCode
boolean hasSessionId()
hasSessionId in interface CreditControlMessagejava.lang.String getSessionId()
getSessionId in interface CreditControlMessagegetSessionId in interface DiameterMessagevoid setSessionId(java.lang.String sessionId)
setSessionId in interface CreditControlMessagesetSessionId in interface DiameterMessagejava.lang.NullPointerException - if sessionId is null.void removeSessionId()
boolean hasOriginHost()
hasOriginHost in interface CreditControlMessageDiameterIdentity getOriginHost()
getOriginHost in interface CreditControlMessagegetOriginHost in interface DiameterMessagevoid setOriginHost(DiameterIdentity originHost)
setOriginHost in interface CreditControlMessagesetOriginHost in interface DiameterMessagejava.lang.NullPointerException - if originHost is null.void removeOriginHost()
boolean hasOriginRealm()
hasOriginRealm in interface CreditControlMessageDiameterIdentity getOriginRealm()
getOriginRealm in interface CreditControlMessagegetOriginRealm in interface DiameterMessagevoid setOriginRealm(DiameterIdentity originRealm)
setOriginRealm in interface CreditControlMessagesetOriginRealm in interface DiameterMessagejava.lang.NullPointerException - if originRealm is null.void removeOriginRealm()
boolean hasDestinationRealm()
DiameterIdentity getDestinationRealm()
getDestinationRealm in interface DiameterMessagevoid setDestinationRealm(DiameterIdentity destinationRealm)
setDestinationRealm in interface DiameterMessagejava.lang.NullPointerException - if destinationRealm is null.void removeDestinationRealm()
boolean hasAuthApplicationId()
hasAuthApplicationId in interface CreditControlMessagelong getAuthApplicationId()
hasAuthApplicationId() to check the existence of this AVP.getAuthApplicationId in interface CreditControlMessagejava.lang.IllegalStateException - if the Auth-Application-Id AVP has not been set on this messagevoid setAuthApplicationId(long authApplicationId)
setAuthApplicationId in interface CreditControlMessagevoid removeAuthApplicationId()
boolean hasServiceContextId()
java.lang.String getServiceContextId()
void setServiceContextId(java.lang.String serviceContextId)
java.lang.NullPointerException - if serviceContextId is null.void removeServiceContextId()
boolean hasCcRequestType()
hasCcRequestType in interface CreditControlMessageCcRequestType getCcRequestType()
getCcRequestType in interface CreditControlMessagevoid setCcRequestType(CcRequestType ccRequestType)
setCcRequestType in interface CreditControlMessagejava.lang.NullPointerException - if ccRequestType is null.void removeCcRequestType()
boolean hasCcRequestNumber()
hasCcRequestNumber in interface CreditControlMessagelong getCcRequestNumber()
hasCcRequestNumber() to check the existence of this AVP.getCcRequestNumber in interface CreditControlMessagejava.lang.IllegalStateException - if the CC-Request-Number AVP has not been set on this messagevoid setCcRequestNumber(long ccRequestNumber)
setCcRequestNumber in interface CreditControlMessagevoid removeCcRequestNumber()
boolean hasDestinationHost()
DiameterIdentity getDestinationHost()
getDestinationHost in interface DiameterMessagevoid setDestinationHost(DiameterIdentity destinationHost)
setDestinationHost in interface DiameterMessagejava.lang.NullPointerException - if destinationHost is null.void removeDestinationHost()
boolean hasUserName()
java.lang.String getUserName()
void setUserName(java.lang.String userName)
java.lang.NullPointerException - if userName is null.void removeUserName()
boolean hasCcSubSessionId()
long getCcSubSessionId()
hasCcSubSessionId() to check the existence of this AVP.java.lang.IllegalStateException - if the CC-Sub-Session-Id AVP has not been set on this messagevoid setCcSubSessionId(long ccSubSessionId)
void removeCcSubSessionId()
boolean hasAcctMultiSessionId()
java.lang.String getAcctMultiSessionId()
void setAcctMultiSessionId(java.lang.String acctMultiSessionId)
java.lang.NullPointerException - if acctMultiSessionId is null.void removeAcctMultiSessionId()
boolean hasOriginStateId()
long getOriginStateId()
hasOriginStateId() to check the existence of this AVP.java.lang.IllegalStateException - if the Origin-State-Id AVP has not been set on this messagevoid setOriginStateId(long originStateId)
void removeOriginStateId()
boolean hasEventTimestamp()
java.util.Date getEventTimestamp()
void setEventTimestamp(java.util.Date eventTimestamp)
java.lang.NullPointerException - if eventTimestamp is null.void removeEventTimestamp()
SubscriptionId[] getSubscriptionIds()
void setSubscriptionId(SubscriptionId subscriptionId)
java.lang.NullPointerException - if subscriptionId is null.void setSubscriptionIds(SubscriptionId[] subscriptionIds)
java.lang.NullPointerException - if subscriptionIds is null.void removeSubscriptionIds()
boolean hasServiceIdentifier()
long getServiceIdentifier()
hasServiceIdentifier() to check the existence of this AVP.java.lang.IllegalStateException - if the Service-Identifier AVP has not been set on this messagevoid setServiceIdentifier(long serviceIdentifier)
void removeServiceIdentifier()
boolean hasTerminationCause()
TerminationCause getTerminationCause()
void setTerminationCause(TerminationCause terminationCause)
java.lang.NullPointerException - if terminationCause is null.void removeTerminationCause()
boolean hasRequestedServiceUnit()
RequestedServiceUnit getRequestedServiceUnit()
void setRequestedServiceUnit(RequestedServiceUnit requestedServiceUnit)
java.lang.NullPointerException - if requestedServiceUnit is null.void removeRequestedServiceUnit()
boolean hasRequestedAction()
RequestedAction getRequestedAction()
void setRequestedAction(RequestedAction requestedAction)
java.lang.NullPointerException - if requestedAction is null.void removeRequestedAction()
UsedServiceUnit[] getUsedServiceUnits()
void setUsedServiceUnit(UsedServiceUnit usedServiceUnit)
java.lang.NullPointerException - if usedServiceUnit is null.void setUsedServiceUnits(UsedServiceUnit[] usedServiceUnits)
java.lang.NullPointerException - if usedServiceUnits is null.void removeUsedServiceUnits()
boolean hasMultipleServicesIndicator()
MultipleServicesIndicator getMultipleServicesIndicator()
void setMultipleServicesIndicator(MultipleServicesIndicator multipleServicesIndicator)
java.lang.NullPointerException - if multipleServicesIndicator is null.void removeMultipleServicesIndicator()
MultipleServicesCreditControl[] getMultipleServicesCreditControls()
void setMultipleServicesCreditControl(MultipleServicesCreditControl multipleServicesCreditControl)
java.lang.NullPointerException - if multipleServicesCreditControl is null.void setMultipleServicesCreditControls(MultipleServicesCreditControl[] multipleServicesCreditControls)
java.lang.NullPointerException - if multipleServicesCreditControls is null.void removeMultipleServicesCreditControls()
ServiceParameterInfo[] getServiceParameterInfos()
void setServiceParameterInfo(ServiceParameterInfo serviceParameterInfo)
java.lang.NullPointerException - if serviceParameterInfo is null.void setServiceParameterInfos(ServiceParameterInfo[] serviceParameterInfos)
java.lang.NullPointerException - if serviceParameterInfos is null.void removeServiceParameterInfos()
boolean hasCcCorrelationId()
byte[] getCcCorrelationId()
void setCcCorrelationId(byte[] ccCorrelationId)
java.lang.NullPointerException - if ccCorrelationId is null.void removeCcCorrelationId()
boolean hasUserEquipmentInfo()
UserEquipmentInfo getUserEquipmentInfo()
void setUserEquipmentInfo(UserEquipmentInfo userEquipmentInfo)
java.lang.NullPointerException - if userEquipmentInfo is null.void removeUserEquipmentInfo()
ProxyInfo[] getProxyInfos()
getProxyInfos in interface CreditControlMessagevoid setProxyInfo(ProxyInfo proxyInfo)
setProxyInfo in interface CreditControlMessagejava.lang.NullPointerException - if proxyInfo is null.void setProxyInfos(ProxyInfo[] proxyInfos)
setProxyInfos in interface CreditControlMessagejava.lang.NullPointerException - if proxyInfos is null.void removeProxyInfos()
DiameterIdentity[] getRouteRecords()
getRouteRecords in interface CreditControlMessagevoid setRouteRecord(DiameterIdentity routeRecord)
setRouteRecord in interface CreditControlMessagejava.lang.NullPointerException - if routeRecord is null.void setRouteRecords(DiameterIdentity[] routeRecords)
setRouteRecords in interface CreditControlMessagejava.lang.NullPointerException - if routeRecords is null.void removeRouteRecords()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
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)java.lang.NullPointerException - if avps is null.void removeExtensionAvps()