public class SFSExtensionFilterChain extends java.lang.Object implements IFilterChain
By using the addFilter method you can add filters to the Extension. Filters will be executed in the same order in which they were added to the Filter Chain
| Constructor and Description |
|---|
SFSExtensionFilterChain(SFSExtension parentExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(java.lang.String filterName,
SFSExtensionFilter filter)
Add a filter to the Filter Chain.
|
void |
destroy()
Shut down the Filter Chain.
|
void |
remove(java.lang.String filterName)
Remove a Filter from the Filter Chain.
|
FilterAction |
runEventInChain(ISFSEvent event) |
FilterAction |
runRequestInChain(java.lang.String requestId,
User sender,
ISFSObject params) |
int |
size()
Get the size of the Filter Chain.
|
public SFSExtensionFilterChain(SFSExtension parentExtension)
public void addFilter(java.lang.String filterName,
SFSExtensionFilter filter)
addFilter in interface IFilterChainfilterName - the name of the filterfilter - the filter that is going to be addedpublic void remove(java.lang.String filterName)
remove in interface IFilterChainfilterName - the name of the Filterpublic FilterAction runEventInChain(ISFSEvent event) throws SFSException
runEventInChain in interface IFilterChainSFSExceptionpublic FilterAction runRequestInChain(java.lang.String requestId, User sender, ISFSObject params)
runRequestInChain in interface IFilterChainpublic int size()
size in interface IFilterChainpublic void destroy()
destroy in interface IFilterChain