* Loop through the filters in the chain. As soon as a filter decides on
* ACCEPT or DENY, then that value is returned. If all of the filters return
* NEUTRAL, then NEUTRAL is returned.
*/
public FilterReply getFilterChainDecision(Object event) {
Filter f = headFilter;
while (f != null) {
switch (f.decide(event)) {
case DENY:
return FilterReply.DENY;
case ACCEPT:
return FilterReply.ACCEPT;
case NEUTRAL:
f = f.getNext();
}
}
return FilterReply.NEUTRAL;
}