net.java.slee.resource.diameter.rf
Interface RfServerSessionActivity

All Superinterfaces:
net.java.slee.resource.diameter.base.DiameterActivity, RfSessionActivity, java.io.Serializable
All Known Implementing Classes:
RfServerSessionActivityImpl

public interface RfServerSessionActivity
extends RfSessionActivity

An RfServerSessionActivity represents an offline charging session for accounting servers. A single RfServerSessionActivity will be created for the Diameter session. All requests received for the session will be fired as events on the same RfServerSessionActivity.

Author:
Alexandre Mendonca , Bartosz Baranowski

Method Summary
 RfAccountingAnswer createRfAccountingAnswer()
          Create an Accounting-Answer with the Acct-Application-Id set to 3.
 RfAccountingAnswer createRfAccountingAnswer(RfAccountingRequest acr)
          Create an Accounting-Answer with some AVPs populated from the provided Accounting-Request.
 void sendRfAccountingAnswer(RfAccountingAnswer accountingAnswer)
          Send an Accounting Answer.
 
Methods inherited from interface net.java.slee.resource.diameter.rf.RfSessionActivity
getRfMessageFactory, getRfSessionState, getSessionId
 
Methods inherited from interface net.java.slee.resource.diameter.base.DiameterActivity
endActivity, getDiameterAvpFactory, getDiameterMessageFactory, sendMessage
 

Method Detail

createRfAccountingAnswer

RfAccountingAnswer createRfAccountingAnswer()
Create an Accounting-Answer with the Acct-Application-Id set to 3.

Returns:
an Accounting-Answer

createRfAccountingAnswer

RfAccountingAnswer createRfAccountingAnswer(RfAccountingRequest acr)
Create an Accounting-Answer with some AVPs populated from the provided Accounting-Request. The ACA will contain the AVPs specified in createRfAccountingAnswer() and the following AVPs from the Accounting-Request:

Parameters:
acr - Accounting-Request to copy AVPs from
Returns:
an Accounting-Answer

sendRfAccountingAnswer

void sendRfAccountingAnswer(RfAccountingAnswer accountingAnswer)
                            throws java.io.IOException,
                                   java.lang.IllegalArgumentException
Send an Accounting Answer.

Parameters:
accountingAnswer - answer message to send
Throws:
java.io.IOException - if the message could not be sent
java.lang.IllegalArgumentException - if accountingAnswer is missing any required AVPs


Copyright © 2011. All Rights Reserved.