Class FilterAttachableImpl<E>

  • All Implemented Interfaces:
    FilterAttachable<E>

    public final class FilterAttachableImpl<E>
    extends java.lang.Object
    implements FilterAttachable<E>
    Implementation of FilterAttachable.
    • Constructor Detail

      • FilterAttachableImpl

        public FilterAttachableImpl()
    • Method Detail

      • getFilterChainDecision

        public FilterReply getFilterChainDecision​(E event)
        Loop through the filters in the list. 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.
        Specified by:
        getFilterChainDecision in interface FilterAttachable<E>
      • getCopyOfAttachedFiltersList

        public java.util.List<Filter<E>> getCopyOfAttachedFiltersList()
        Description copied from interface: FilterAttachable
        Get a copy of all the filters contained within this FilterAttachable object.
        Specified by:
        getCopyOfAttachedFiltersList in interface FilterAttachable<E>
        Returns:
        all attached filters as a list