net.jradius.handler.chain
Class JRChainBase
java.lang.Object
org.apache.commons.chain.impl.ChainBase
net.jradius.handler.chain.JRChainBase
- All Implemented Interfaces:
- JRCommand, org.apache.commons.chain.Chain, org.apache.commons.chain.Command, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
public class JRChainBase
- extends org.apache.commons.chain.impl.ChainBase
- implements JRCommand, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
The JRadius ChainBase for Jakarta Commons Chain
- Author:
- David Bird
Fields inherited from class org.apache.commons.chain.impl.ChainBase |
commands, frozen |
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class org.apache.commons.chain.impl.ChainBase |
addCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected HandlerConfigurationItem config
JRChainBase
public JRChainBase()
setName
public void setName(String name)
getName
public String getName()
- Specified by:
getName
in interface JRCommand
- Returns:
- Returns the name of the handler (as defined in the configuration)
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
- Parameters:
cfg
- The HandlerConfigurationItem to be set
doesHandle
public boolean doesHandle(JRadiusEvent event)
- Description copied from interface:
JRCommand
- Tests whether or not this handler handles the given JRadiusEvent.
- Specified by:
doesHandle
in interface JRCommand
- Parameters:
event
- The JRadiusEvent (or JRadiusRequest) to be checked
- Returns:
- Returns true if this handler should handle the given event
execute
public boolean execute(org.apache.commons.chain.Context context)
throws Exception
- Specified by:
execute
in interface org.apache.commons.chain.Chain
- Specified by:
execute
in interface org.apache.commons.chain.Command
- Overrides:
execute
in class org.apache.commons.chain.impl.ChainBase
- Throws:
Exception
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
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.