1 package ch.qos.logback.core.filter; 2 3 import ch.qos.logback.core.spi.FilterReply; 4 5 public abstract class AbstractMatcherFilter<E> extends Filter<E> { 6 7 protected FilterReply onMatch = FilterReply.NEUTRAL; 8 protected FilterReply onMismatch = FilterReply.NEUTRAL; 9 10 final public void setOnMatch(FilterReply reply) { 11 this.onMatch = reply; 12 } 13 14 final public void setOnMismatch(FilterReply reply) { 15 this.onMismatch = reply; 16 } 17 18 final public FilterReply getOnMatch() { 19 return onMatch; 20 } 21 22 final public FilterReply getOnMismatch() { 23 return onMismatch; 24 } 25 }