net.jradius.handler
Class PacketHandlerBase
java.lang.Object
net.jradius.handler.EventHandlerBase
net.jradius.handler.PacketHandlerBase
- All Implemented Interfaces:
- JRCommand, EventHandler, org.apache.commons.chain.Command
public abstract class PacketHandlerBase
- extends EventHandlerBase
The base abstract class of all Packet Handlers
- Author:
- David Bird, Gert Jan Verhoog
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PacketHandlerBase
public PacketHandlerBase()
handle
public abstract boolean handle(JRadiusRequest request)
throws 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:
Exception
handle
public boolean handle(JRadiusEvent event)
throws Exception
- Implements the handle(JRadiusEvent) by calling handle(JRadiusRequest)
- Specified by:
handle
in interface EventHandler
- Specified by:
handle
in class EventHandlerBase
- Throws:
Exception
- See Also:
EventHandler.handle(net.jradius.server.JRadiusEvent)
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.