|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CreditControlRequest
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.
::= < 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 ]
| Field Summary |
|---|
| Fields inherited from interface net.java.slee.resource.diameter.cca.events.CreditControlMessage |
|---|
commandCode |
| Method Summary | |
|---|---|
byte[] |
getCcCorrelationId()
Returns the value of the CC-Correlation-Id AVP, of type OctetString. |
MultipleServicesIndicatorType |
getMultipleServicesIndicator()
Returns the value of the Multiple-Services-Indicator AVP, of type Enumerated. |
RequestedActionType |
getRequestedAction()
Returns the value of the Requested-Action AVP, of type Enumerated. |
RequestedServiceUnitAvp |
getRequestedServiceUnit()
Returns the value of the Requested-Service-Unit AVP, of type Grouped. |
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. |
ServiceParameterInfoAvp[] |
getServiceParameterInfos()
Returns the set of Service-Parameter-Info AVPs. |
SubscriptionIdAvp[] |
getSubscriptionIds()
Returns the set of Subscription-Id AVPs. |
net.java.slee.resource.diameter.base.events.avp.TerminationCauseType |
getTerminationCause()
Returns the value of the Termination-Cause AVP, of type Enumerated. |
UsedServiceUnitAvp[] |
getUsedServiceUnits()
Returns the set of Used-Service-Unit AVPs. |
UserEquipmentInfoAvp |
getUserEquipmentInfo()
Returns the value of the User-Equipment-Info AVP, of type Grouped. |
boolean |
hasCcCorrelationId()
Returns true if the CC-Correlation-Id AVP is present in the message. |
boolean |
hasMultipleServicesIndicator()
Returns true if the Multiple-Services-Indicator 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 |
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. |
void |
setCcCorrelationId(byte[] ccCorrelationId)
Sets the value of the CC-Correlation-Id AVP, of type OctetString. |
void |
setMultipleServicesIndicator(MultipleServicesIndicatorType multipleServicesIndicator)
Sets the value of the Multiple-Services-Indicator AVP, of type Enumerated. |
void |
setRequestedAction(RequestedActionType requestedAction)
Sets the value of the Requested-Action AVP, of type Enumerated. |
void |
setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
Sets the value of the Requested-Service-Unit AVP, of type Grouped. |
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(ServiceParameterInfoAvp serviceParameterInfo)
Sets a single Service-Parameter-Info AVP in the message, of type Grouped. |
void |
setServiceParameterInfos(ServiceParameterInfoAvp[] serviceParameterInfos)
Sets the set of Service-Parameter-Info AVPs, with all the values in the given array. |
void |
setSubscriptionId(SubscriptionIdAvp subscriptionId)
Sets a single Subscription-Id AVP in the message, of type Grouped. |
void |
setSubscriptionIds(SubscriptionIdAvp[] subscriptionIds)
Sets the set of Subscription-Id AVPs, with all the values in the given array. |
void |
setTerminationCause(net.java.slee.resource.diameter.base.events.avp.TerminationCauseType terminationCause)
Sets the value of the Termination-Cause AVP, of type Enumerated. |
void |
setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
Sets a single Used-Service-Unit AVP in the message, of type Grouped. |
void |
setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
Sets the set of Used-Service-Unit AVPs, with all the values in the given array. |
void |
setUserEquipmentInfo(UserEquipmentInfoAvp userEquipmentInfo)
Sets the value of the User-Equipment-Info AVP, of type Grouped. |
| Methods inherited from interface net.java.slee.resource.diameter.base.events.DiameterMessage |
|---|
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasDestinationHost, hasDestinationRealm, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationHost, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId |
| Method Detail |
|---|
byte[] getCcCorrelationId()
void setCcCorrelationId(byte[] ccCorrelationId)
throws java.lang.IllegalStateException
ccCorrelationId -
java.lang.IllegalStateExceptionboolean hasCcCorrelationId()
MultipleServicesIndicatorType getMultipleServicesIndicator()
void setMultipleServicesIndicator(MultipleServicesIndicatorType multipleServicesIndicator)
throws java.lang.IllegalStateException
multipleServicesIndicator -
java.lang.IllegalStateExceptionboolean hasMultipleServicesIndicator()
RequestedActionType getRequestedAction()
void setRequestedAction(RequestedActionType requestedAction)
throws java.lang.IllegalStateException
requestedAction -
java.lang.IllegalStateExceptionboolean hasRequestedAction()
RequestedServiceUnitAvp getRequestedServiceUnit()
void setRequestedServiceUnit(RequestedServiceUnitAvp requestedServiceUnit)
throws java.lang.IllegalStateException
requestedServiceUnit -
java.lang.IllegalStateExceptionboolean hasRequestedServiceUnit()
java.lang.String getServiceContextId()
void setServiceContextId(java.lang.String serviceContextId)
throws java.lang.IllegalStateException
serviceContextId -
java.lang.IllegalStateExceptionboolean hasServiceContextId()
long getServiceIdentifier()
void setServiceIdentifier(long serviceIdentifier)
throws java.lang.IllegalStateException
serviceIdentifier -
java.lang.IllegalStateExceptionboolean hasServiceIdentifier()
ServiceParameterInfoAvp[] getServiceParameterInfos()
void setServiceParameterInfo(ServiceParameterInfoAvp serviceParameterInfo)
throws java.lang.IllegalStateException
serviceParameterInfo -
java.lang.IllegalStateException
void setServiceParameterInfos(ServiceParameterInfoAvp[] serviceParameterInfos)
throws java.lang.IllegalStateException
serviceParameterInfos -
java.lang.IllegalStateExceptionSubscriptionIdAvp[] getSubscriptionIds()
void setSubscriptionId(SubscriptionIdAvp subscriptionId)
throws java.lang.IllegalStateException
subscriptionId -
java.lang.IllegalStateException
void setSubscriptionIds(SubscriptionIdAvp[] subscriptionIds)
throws java.lang.IllegalStateException
subscriptionIds -
java.lang.IllegalStateExceptionnet.java.slee.resource.diameter.base.events.avp.TerminationCauseType getTerminationCause()
void setTerminationCause(net.java.slee.resource.diameter.base.events.avp.TerminationCauseType terminationCause)
throws java.lang.IllegalStateException
terminationCause -
java.lang.IllegalStateExceptionboolean hasTerminationCause()
UsedServiceUnitAvp[] getUsedServiceUnits()
void setUsedServiceUnit(UsedServiceUnitAvp usedServiceUnit)
throws java.lang.IllegalStateException
usedServiceUnit -
java.lang.IllegalStateException
void setUsedServiceUnits(UsedServiceUnitAvp[] usedServiceUnits)
throws java.lang.IllegalStateException
usedServiceUnits -
java.lang.IllegalStateExceptionUserEquipmentInfoAvp getUserEquipmentInfo()
void setUserEquipmentInfo(UserEquipmentInfoAvp userEquipmentInfo)
throws java.lang.IllegalStateException
userEquipmentInfo -
java.lang.IllegalStateExceptionboolean hasUserEquipmentInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||