net.jradius.handler
Class PacketHandlerChain
java.lang.Object
net.jradius.handler.EventHandlerBase
net.jradius.handler.EventHandlerChain
net.jradius.handler.PacketHandlerChain
- All Implemented Interfaces:
- JRCommand, EventHandler, PacketHandler, org.apache.commons.chain.Command, org.springframework.beans.factory.BeanFactoryAware
public class PacketHandlerChain
- extends EventHandlerChain
- implements PacketHandler
The Catalog Handler is a simple PacketHandler that delegates
the request to a type specific command within a chain catalog,
if one is found. In the case of accounting, if the 'accounting'
chain is not found, accounting status specific chains are tried
(e.g. acct-start, acct-interim, and acct-stop).
- Author:
- David Bird
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class net.jradius.handler.EventHandlerChain |
execute, execute, getCatalog, getCatalogName, getOnFalse, getOnTrue, setBeanFactory, setCatalogName, setConfig, setOnFalse, setOnTrue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.chain.Command |
execute |
PacketHandlerChain
public PacketHandlerChain()
handle
public boolean handle(JRadiusEvent event)
throws Exception
- Specified by:
handle
in interface EventHandler
- Overrides:
handle
in class EventHandlerChain
- Throws:
Exception
handle
public boolean handle(JRadiusRequest request)
throws Exception
- Description copied from interface:
PacketHandler
- Derived classes must implement the handle method
- Specified by:
handle
in interface PacketHandler
- Parameters:
request
- The JRadiusRequest being processed
- Returns:
- Returns true of the command is handled (i.e. break the chain)
- Throws:
Exception
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.