public abstract class EventHandlerBase extends Object implements EventHandler
| Modifier and Type | Field and Description |
|---|---|
protected HandlerConfigurationItem |
config |
| Constructor and Description |
|---|
EventHandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesHandle(JRadiusEvent event)
Tests whether or not this handler handles the given JRadiusEvent.
|
boolean |
execute(org.apache.commons.chain.Context context) |
String |
getName() |
abstract boolean |
handle(JRadiusEvent event) |
void |
setConfig(ConfigurationItem cfg)
Set the ConfigurationItem of this handler.
|
void |
setName(String name) |
protected HandlerConfigurationItem config
public void setConfig(ConfigurationItem cfg)
JRCommandpublic boolean doesHandle(JRadiusEvent event)
JRCommanddoesHandle in interface JRCommandevent - The JRadiusEvent (or JRadiusRequest) to be checkedpublic abstract boolean handle(JRadiusEvent event) throws Exception
handle in interface EventHandlerExceptionpublic boolean execute(org.apache.commons.chain.Context context)
throws Exception
execute in interface org.apache.commons.chain.CommandExceptionpublic String getName()
public void setName(String name)
setName in interface EventHandlerCopyright © 2017. All rights reserved.