Interface AccountingServerSessionActivity
-
- All Superinterfaces:
AccountingSessionActivity
public interface AccountingServerSessionActivity extends AccountingSessionActivity
An AccountingServerSessionActivity represents an accounting session for Diameter accounting clients. A single AccountingServerSessionActivity will be created for the Diameter session. All requests received for the session will be fired as events on the same AccountingServerSessionActivity.- Author:
- OpenCloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface org.jainslee.resources.diameter.base.AccountingSessionActivity
endActivity, getLastReceiveTime, getLastSendTime, getMessageFactory, getSessionId, getSessionState
-
-
-
-
Method Detail
-
sendAccountingAnswer
void sendAccountingAnswer(AccountingAnswer accountingAnswer) throws IllegalArgumentException, SendException
Send an Accounting Answer.- Parameters:
accountingAnswer
- answer message to send- Throws:
SendException
- if the message could not be sentIllegalArgumentException
- if accountingAnswer is missing any required AVPs
-
createAccountingAnswer
AccountingAnswer createAccountingAnswer()
Create an Accounting-Answer with the Acct-Application-Id set to 3.- Returns:
- an Accounting-Answer
-
createAccountingAnswer
AccountingAnswer createAccountingAnswer(AccountingRequest acr)
Create an Accounting-Answer with some AVPs populated from the provided Accounting-Request.The ACR will contain the AVPs specified in
createAccountingAnswer()
and the following AVPs from the Accounting-Request:- Accounting-Record-Type
- Accounting-Record-Number
- Parameters:
acr
- Accounting-Request to copy AVPs from- Returns:
- an Accounting-Answer
-
-