net.sf.jradius.handler.chain
Class JRChainBase
java.lang.Object
org.apache.commons.chain.impl.ChainBase
net.sf.jradius.handler.chain.JRChainBase
- All Implemented Interfaces:
- JRCommand, org.apache.commons.chain.Chain, org.apache.commons.chain.Command
public class JRChainBase
- extends org.apache.commons.chain.impl.ChainBase
- implements JRCommand
The JRadius ChainBase for Jakarta Commons Chain
- Author:
- David Bird
Fields inherited from class org.apache.commons.chain.impl.ChainBase |
commands, frozen |
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(java.lang.String name)
getName
public java.lang.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 java.lang.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:
java.lang.Exception
Copyright © 2006 The JRadius Project, All Rights Reserved.