net.sf.jradius.example
Class LocalUsersHandler

java.lang.Object
  extended by net.sf.jradius.handler.EventHandlerBase
      extended by net.sf.jradius.handler.PacketHandlerBase
          extended by net.sf.jradius.example.LocalUsersHandler
All Implemented Interfaces:
JRCommand, EventHandler, org.apache.commons.chain.Command

public class LocalUsersHandler
extends PacketHandlerBase

A simple Local Users implementation where users and attributes are defined in the JRadius XML configuration.

Author:
David Bird

Field Summary
 
Fields inherited from class net.sf.jradius.handler.EventHandlerBase
config
 
Constructor Summary
LocalUsersHandler()
           
 
Method Summary
 boolean handle(JRadiusRequest jRequest)
          Derived classes must implement the handle method
 void setConfig(ConfigurationItem cfg)
          Set the ConfigurationItem of this handler.
 
Methods inherited from class net.sf.jradius.handler.PacketHandlerBase
handle
 
Methods inherited from class net.sf.jradius.handler.EventHandlerBase
doesHandle, execute, getName, setName, splitUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalUsersHandler

public LocalUsersHandler()
Method Detail

setConfig

public void setConfig(ConfigurationItem cfg)
Description copied from interface: JRCommand
Set the ConfigurationItem of this handler. All JRadius handlers have an associated HandlerConfigurationItem associated with it.

Specified by:
setConfig in interface JRCommand
Overrides:
setConfig in class EventHandlerBase
Parameters:
cfg - The HandlerConfigurationItem to be set

handle

public boolean handle(JRadiusRequest jRequest)
Description copied from class: PacketHandlerBase
Derived classes must implement the handle method

Specified by:
handle in class PacketHandlerBase
Parameters:
jRequest - The JRadiusRequest being processed
Returns:
Returns true of the command is handled (i.e. break the chain)


Copyright © 2006 The JRadius Project, All Rights Reserved.