net.jradius.handler
Class EventHandlerChain
java.lang.Object
net.jradius.handler.EventHandlerBase
net.jradius.handler.EventHandlerChain
- All Implemented Interfaces:
- JRCommand, EventHandler, org.apache.commons.chain.Command, org.springframework.beans.factory.BeanFactoryAware
- Direct Known Subclasses:
- PacketHandlerChain
public class EventHandlerChain
- extends EventHandlerBase
- implements org.springframework.beans.factory.BeanFactoryAware
The EventHandlerChain is a simple EventHandler 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventHandlerChain
public EventHandlerChain()
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(JRadiusEvent event)
throws Exception
- Specified by:
handle
in interface EventHandler
- Specified by:
handle
in class EventHandlerBase
- Throws:
Exception
execute
protected boolean execute(String commandName,
JRadiusEvent event)
throws Exception
- Throws:
Exception
execute
protected boolean execute(JRCommand command,
JRadiusEvent event)
throws Exception
- Throws:
Exception
setOnFalse
public void setOnFalse(String onFalse)
setOnTrue
public void setOnTrue(String onTrue)
getOnFalse
public String getOnFalse()
getOnTrue
public String getOnTrue()
getCatalogName
public String getCatalogName()
setCatalogName
public void setCatalogName(String catalogName)
getCatalog
protected org.apache.commons.chain.Catalog getCatalog()
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
- Specified by:
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.