AXL RADIUS Server API V3

com.theorem.radserver3
Class ProxyImpl

Object
  extended byProxyImpl

public abstract class ProxyImpl
extends Object

Abstract class for implementing proxy server routing changes on the fly based on the packet attributes. This class also allows changing attributes on returning response packets as well.

ProxyImplFactory has an example of a simple routing change.

See Also:
ProxyImplFactory, setProxyStateObject(), getProxyStateObject()

Constructor Summary
ProxyImpl()
           
 
Method Summary
abstract  void changeRequest(ProxyInfo pi)
          Alter routing on an inbound packet by changing proxy information.
abstract  void changeResponse(ProxyInfo pi)
          Alter response packets.
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

ProxyImpl

public ProxyImpl()
Method Detail

changeRequest

public abstract void changeRequest(ProxyInfo pi)
                            throws AccessDropException,
                                   AccessRejectException
Alter routing on an inbound packet by changing proxy information. Called by the server access session to potentially change the proxy information on an access packet. Any attributes may be modified and new attributes added.

Proxy routing alterations are made to the User-Name attribute. This only affects Access-Request and Accounting-Request packets. Responses will be automatically routed back to their destinations. It's possible to change a routed packet to a local packet as well.

Parameters:
pi - ProxyInfo object.
Throws:
AccessDropException - to drop a packet.
AccessRejectException - to reject a packet.

changeResponse

public abstract void changeResponse(ProxyInfo pi)
                             throws AccessDropException,
                                    AccessRejectException
Alter response packets. Access-Accept packets that are returning from a proxy server may be examined and their attributes altered. It's possible to change a routed packet to a local packet as well.

Parameters:
pi - ProxyInfo object.
Throws:
AccessDropException - to drop a packet.
AccessRejectException - to reject a packet.

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 each 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.