net.sf.jradius.handler
Class PacketHandlerBase

java.lang.Object
  extended by net.sf.jradius.handler.EventHandlerBase
      extended by net.sf.jradius.handler.PacketHandlerBase
All Implemented Interfaces:
JRCommand, EventHandler, org.apache.commons.chain.Command
Direct Known Subclasses:
LocalUsersHandler, MonitoringRequestHandler, PreAcctHandler, RewriteSessionIdHandler, StandardCheckingHandler

public abstract class PacketHandlerBase
extends EventHandlerBase

The base abstract class of all Packet Handlers

Author:
David Bird, Gert Jan Verhoog

Field Summary
 
Fields inherited from class net.sf.jradius.handler.EventHandlerBase
config
 
Constructor Summary
PacketHandlerBase()
           
 
Method Summary
 boolean handle(JRadiusEvent event)
          Implements the handle(JRadiusEvent) by calling handle(JRadiusRequest)
abstract  boolean handle(JRadiusRequest request)
          Derived classes must implement the handle method
 
Methods inherited from class net.sf.jradius.handler.EventHandlerBase
doesHandle, execute, getName, setConfig, setName, splitUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketHandlerBase

public PacketHandlerBase()
Method Detail

handle

public abstract boolean handle(JRadiusRequest request)
                        throws java.lang.Exception
Derived classes must implement the handle method

Parameters:
request - The JRadiusRequest being processed
Returns:
Returns true of the command is handled (i.e. break the chain)
Throws:
java.lang.Exception

handle

public boolean handle(JRadiusEvent event)
               throws java.lang.Exception
Implements the handle(JRadiusEvent) by calling handle(JRadiusRequest)

Specified by:
handle in interface EventHandler
Specified by:
handle in class EventHandlerBase
Throws:
java.lang.Exception
See Also:
EventHandler.handle(net.sf.jradius.server.JRadiusEvent)


Copyright © 2006 The JRadius Project, All Rights Reserved.