AXL RADIUS Server API V3

com.theorem.radserver3
Class AccountingImpl

Object
  extended byAccountingImpl

public abstract class AccountingImpl
extends Object

Abstract class for implementing accounting.


Constructor Summary
AccountingImpl()
           
 
Method Summary
abstract  void accounting(AccountingInfo ai)
          Called by the server to processing accounting requests.
abstract  void logs(LogImpl svrLog, LogImpl dbgLog)
          Connects the implementation to the server logs.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountingImpl

public AccountingImpl()
Method Detail

accounting

public abstract void accounting(AccountingInfo ai)
                         throws AccessRejectException,
                                AccessDropException
Called by the server to processing accounting requests.

Upon the return of this method an Accounting-Response packet will be sent to the client. If attributes are set using setResponseAttributes(). they will be sent with the packet. In general no attributes are sent with an Accounting-Response packet.

To avoid sending an Accounting-Response packet throw the AccessDropException.

Parameters:
ai - AccountingInfo object.
Throws:
AccessRejectException - This should never be used unless the client is expecting an Access-Reject. This might be useful for yet to be defined extended packet types arriving on the accounting port.
AccessDropException - if accounting fails and no response is to be sent. The message in the exceptions will be sent to the server log as failures.

logs

public abstract void logs(LogImpl svrLog,
                          LogImpl dbgLog)
Connects the implementation to the server logs. The logging classes are made available to the implementation for reporting this and that. These classes are whatever the programmer defined them to be in the RADIUSServer class. This method will be called when the authentication server is started.

Parameters:
svrLog - Server log class
dbgLog - Debug log class

AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.