The ACAResults class is used to transfer information from the Charging Collection Function back to the IMS™ Application Server application that sent a request using the Rf accounting Web service.
ACAResults transfers information from the Charging Collection Function using the Rf accounting Web service. When an IMS Application Server application requests a one time charging event, such as eventOfflineAccounting, the Rf accounting Web service will return an ACAResults object. This returns information such as whether the operation completed successfully and other values from the ACA (Accounting Answer). In case of failure, a Java exception will be thrown to the calling application.
accountingData = new Accounting(); //create and initialize this object with accounting data to pass it on using the eventOfflineAccounting method. ACAResults myResults = service.eventOfflineAccounting( "MySessionId", "MyUserName", 0, "example.com", 2085978496000, 0, accountingData);
Methods | Type | Returns | Description |
---|---|---|---|
getAAct | Accounting | aAct | Returns the Accounting object. |
getAcctInterimInterval | int | acctInterimInterval | Retrieves the start time for the session. The acctInterimInterval is returned in seconds. |
getEventTimestamp | long | eventTimestamp | Retrieves the event time stamp. The event time stamp is returned in time. It may be included in ACR or ACA messages to record the time in milliseconds since January 1, 1970 00:00 UTC. Example: long eventTimestamp = acaResults.getEventTimestamp(); |
getOriginStateID | int | originStateID | Retrieves the origin state identifier. This Attribute Value Pair (AVP) is optional. |
getResultCode | int | resultCode | Retrieves the result code value. Possible values
include:
|
Methods | Parameter Name | Type | Description |
---|---|---|---|
setAAct | act | Accounting | Defines the account |
setAcctInterimInterval | acctInterimInterval | int | Defines the interval at which each update or interim message must be sent. |
setEventTimestamp | eventTimestamp | long | Defines the event time stamp |
setOriginStateID | originStateID | int | Defines the origin state identifier |
setResultCode | resultCode | int | Defines the result code value |