Interface IFilterChain
-
- All Known Implementing Classes:
SFSExtensionFilterChain
public interface IFilterChain
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
addFilter
void addFilter(java.lang.String filterName, SFSExtensionFilter filter)
Add a filter to the Filter Chain. Filters will be executed in the same order in which they were added to the Filter Chain.- Parameters:
filterName
- the name of the filterfilter
- the filter that is going to be added
-
remove
void remove(java.lang.String filterName)
Remove a Filter from the Filter Chain.- Parameters:
filterName
- the name of the Filter
-
runRequestInChain
FilterAction runRequestInChain(java.lang.String requestId, User sender, ISFSObject params)
-
runEventInChain
FilterAction runEventInChain(ISFSEvent event) throws SFSException
- Throws:
SFSException
-
size
int size()
Get the size of the Filter Chain.- Returns:
- the size of the Filter Chain.
-
destroy
void destroy()
Shut down the Filter Chain.
-
-