Class IncludeExcludeFilter

  • All Implemented Interfaces:
    Filter

    public class IncludeExcludeFilter
    extends java.lang.Object
    implements Filter
    First, all Include directives are evaluated; at least one must match, or the className is rejected. Next, all Exclude directives are evaluated. If any matches, the className is rejected. Last, any classNames which do not match an Include or a Exclude directive are denied by default.
    • Field Detail

      • include

        private Filter include
      • exclude

        private Filter exclude
    • Constructor Detail

      • IncludeExcludeFilter

        public IncludeExcludeFilter​(Filter include,
                                    Filter exclude)
    • Method Detail

      • accept

        public boolean accept​(java.lang.String name)
        Specified by:
        accept in interface Filter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object