net.sf.jradius.handler.chain
Class JRChainBase

java.lang.Object
  extended by org.apache.commons.chain.impl.ChainBase
      extended by 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

Field Summary
protected  HandlerConfigurationItem config
           
 
Fields inherited from class org.apache.commons.chain.impl.ChainBase
commands, frozen
 
Constructor Summary
JRChainBase()
           
 
Method Summary
 boolean doesHandle(JRadiusEvent event)
          Tests whether or not this handler handles the given JRadiusEvent.
 boolean execute(org.apache.commons.chain.Context context)
           
 java.lang.String getName()
           
 void setConfig(ConfigurationItem cfg)
          Set the ConfigurationItem of this handler.
 void setName(java.lang.String name)
           
 
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
 

Field Detail

config

protected HandlerConfigurationItem config
Constructor Detail

JRChainBase

public JRChainBase()
Method Detail

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.