Package ch.qos.logback.core.filter

Examples of ch.qos.logback.core.filter.Filter


  /**
   * Clear the filter chain
   */
  public void clearAllFilters() {
    Filter f = headFilter;
    while (f != null) {
      final Filter next = f.getNext();
      f.setNext(null);
      f = next;
    }
    f = null;
    headFilter = null;
View Full Code Here


   * 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;
  }
View Full Code Here

  /**
   * Clear the filter chain
   */
  public void clearAllFilters() {
    Filter f = headFilter;
    while (f != null) {
      final Filter next = f.getNext();
      f.setNext(null);
      f = next;
    }
    f = null;
    headFilter = null;
View Full Code Here

   * 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 int getFilterChainDecision(Object event) {
    Filter f = headFilter;

    while (f != null) {
      switch (f.decide(event)) {
      case Filter.DENY:
        return Filter.DENY;

      case Filter.ACCEPT:
        return Filter.ACCEPT;

      case Filter.NEUTRAL:
        f = f.getNext();
      }
    }
    return Filter.NEUTRAL;
  }
View Full Code Here

TOP

Related Classes of ch.qos.logback.core.filter.Filter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.