Class MimeTypeFilter

  • All Implemented Interfaces:
    EventFilter

    public class MimeTypeFilter
    extends AbstractEventFilter
    EventFilter that checks if an events makes reference to a content with a specific mime-type within a set of them.
    • Method Detail

      • of

        public static MimeTypeFilter of​(String... acceptedMimeTypes)
        Obtain a MimeTypeFilter for a specific mime-type.
        Parameters:
        acceptedMimeTypes - given list of mime-type's that must be accepted by the filter
        Returns:
        created MimeTypeFilter
      • test

        public boolean test​(RepoEvent<DataAttributes<Resource>> event)
        Description copied from interface: EventFilter
        Evaluates this predicate on the given argument.
        Parameters:
        event - the input argument
        Returns:
        true if the input argument matches the predicate, otherwise false