public interface AccountingServerSessionActivity extends AccountingSessionActivity
Modifier and Type | Method and Description |
---|---|
AccountingAnswer |
createAccountingAnswer()
Create an Accounting-Answer with the Acct-Application-Id set to 3.
|
AccountingAnswer |
createAccountingAnswer(AccountingRequest acr)
Create an Accounting-Answer with some AVPs populated from the provided Accounting-Request.
|
void |
sendAccountingAnswer(AccountingAnswer accountingAnswer)
Send an Accounting Answer.
|
endActivity, getLastReceiveTime, getLastSendTime, getMessageFactory, getSessionId, getSessionState
void sendAccountingAnswer(AccountingAnswer accountingAnswer) throws java.lang.IllegalArgumentException, SendException
accountingAnswer
- answer message to sendSendException
- if the message could not be sentjava.lang.IllegalArgumentException
- if accountingAnswer is missing any required AVPsAccountingAnswer createAccountingAnswer()
AccountingAnswer createAccountingAnswer(AccountingRequest acr)
The ACR will contain the AVPs specified in createAccountingAnswer()
and the following AVPs from the Accounting-Request:
acr
- Accounting-Request to copy AVPs from