Package ch.qos.logback.core.spi
Interface FilterAttachable<E>
- All Known Subinterfaces:
Appender<E>
- All Known Implementing Classes:
AbstractServerSocketAppender
,AbstractSocketAppender
,AbstractSSLSocketAppender
,AppenderBase
,AsyncAppenderBase
,ConsoleAppender
,CyclicBufferAppender
,FileAppender
,FilterAttachableImpl
,ListAppender
,NOPAppender
,OutputStreamAppender
,RollingFileAppender
,SiftingAppenderBase
,SMTPAppenderBase
,SSLServerSocketAppenderBase
,SyslogAppenderBase
,UnsynchronizedAppenderBase
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
Add a filter. -
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.
-