|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.iges.anagram.AbstractModule
|
+--org.iges.anagram.filter.Filter
A module that performs a step in the handling of a client request.
| Field Summary | |
protected boolean |
enabled
|
protected java.lang.String |
filterName
|
protected java.lang.String |
moduleID
|
protected Filter |
next
|
| Fields inherited from class org.iges.anagram.AbstractModule |
log, moduleName, parent, server |
| Constructor Summary | |
Filter()
|
|
| Method Summary | |
void |
configure(Setting setting)
Configures the module according to the settings provided. |
protected abstract void |
doFilter(ClientRequest request)
|
abstract java.lang.String |
getFilterName()
The name of this filter. |
java.lang.String |
getModuleID()
Returns an ID for this module. |
void |
handle(ClientRequest request)
Handles a client request. |
boolean |
isEnabled()
Indicates whether this filter is enabled. |
void |
setEnabled(boolean enabled)
Sets whether this filter is enabled |
void |
setNext(Filter next)
Sets the filter that this filter should pass requests to |
| Methods inherited from class org.iges.anagram.AbstractModule |
configModule, debug, debug, error, fail, fail, fail, getModuleName, info, init, toString, verbose, verbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Filter next
protected java.lang.String filterName
protected java.lang.String moduleID
protected boolean enabled
| Constructor Detail |
public Filter()
| Method Detail |
public java.lang.String getModuleID()
Module
getModuleID in interface ModulegetModuleID in class AbstractModule
public void configure(Setting setting)
throws ConfigException
AbstractModule
configure in interface Moduleconfigure in class AbstractModuleConfigExceptionpublic abstract java.lang.String getFilterName()
public void setNext(Filter next)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public void handle(ClientRequest request)
throws ModuleException
next.handle().
If the enabled property
is set to false, this method should perform no action, and
always pass requests directly to next.handle().
ModuleException
protected abstract void doFilter(ClientRequest request)
throws ModuleException
ModuleException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||