Package ch.qos.logback.core.spi
Interface FilterAttachable<E>
-
- All Known Subinterfaces:
Appender<E>
- All Known Implementing Classes:
AbstractServerSocketAppender,AbstractSocketAppender,AbstractSSLSocketAppender,AppenderBase,AsyncAppender,AsyncAppenderBase,ConsoleAppender,CyclicBufferAppender,DBAppender,DBAppenderBase,FileAppender,FilterAttachableImpl,ListAppender,NOPAppender,OutputStreamAppender,RollingFileAppender,ServerSocketAppender,SiftingAppender,SiftingAppenderBase,SMTPAppender,SMTPAppenderBase,SocketAppender,SSLServerSocketAppender,SSLServerSocketAppenderBase,SSLSocketAppender,SyslogAppender,SyslogAppenderBase,UnsynchronizedAppenderBase
public interface FilterAttachable<E>Interface for attaching filters to objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFilter(Filter<E> newFilter)Add a filter.voidclearAllFilters()java.util.List<Filter<E>>getCopyOfAttachedFiltersList()Get a copy of all the filters contained within this FilterAttachable object.FilterReplygetFilterChainDecision(E event)Loop through the filters in the chain.
-
-
-
Method Detail
-
clearAllFilters
void clearAllFilters()
-
getCopyOfAttachedFiltersList
java.util.List<Filter<E>> getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable object.- Returns:
- all attached filters as a list
-
getFilterChainDecision
FilterReply getFilterChainDecision(E event)
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.
-
-