- All Known Subinterfaces:
Appender<E>
- All Known Implementing Classes:
AbstractServerSocketAppender
,AbstractSocketAppender
,AbstractSSLSocketAppender
,AppenderBase
,AsyncAppender
,AsyncAppenderBase
,ConsoleAppender
,CyclicBufferAppender
,DelayingListAppender
,FileAppender
,FilterAttachableImpl
,ListAppender
,NOPAppender
,NPEAppender
,OutputStreamAppender
,RollingFileAppender
,ServerSocketAppender
,SiftingAppender
,SiftingAppenderBase
,SMTPAppender
,SMTPAppenderBase
,SocketAppender
,SSLServerSocketAppender
,SSLServerSocketAppenderBase
,SSLSocketAppender
,StringListAppender
,SyslogAppender
,SyslogAppenderBase
,UnsynchronizedAppenderBase
,WithLayoutListAppender
public interface FilterAttachable<E>
Interface for attaching filters to objects.
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a filter.void
Get a copy of all the filters contained within this FilterAttachable object.getFilterChainDecision
(E event) Loop through the filters in the chain.
-
Method Details
-
addFilter
-
clearAllFilters
void clearAllFilters() -
getCopyOfAttachedFiltersList
Get a copy of all the filters contained within this FilterAttachable object.- Returns:
- all attached filters as a list
-
getFilterChainDecision
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.
-