Class OpenAPINormalizer.BaseFilter

    • Field Detail

      • hasFilter

        protected boolean hasFilter
    • Constructor Detail

      • BaseFilter

        protected BaseFilter​(String input)
    • Method Detail

      • hasFilter

        public boolean hasFilter()
      • parse

        public boolean parse()
        Perform the parsing of the filter string.
        Returns:
        true if filters need to be processed
      • filteringMethods

        public abstract Set<String> filteringMethods()
      • usageMessage

        public abstract String usageMessage()
      • splitByPipe

        protected Set<String> splitByPipe​(String filterValue)
        Split the filterValue by pipe.
        Returns:
        the split values.
      • parse

        protected void parse​(String filterName,
                             String filterValue)
        Parse non default filtering methods. Override this method to add custom parsing logic. By default throws IllegalArgumentException.
        Parameters:
        filterName - name of the filter
        filterValue - value of the filter
      • parseFails

        protected void parseFails​(String filterName,
                                  String filterValue)
      • logIfMatch

        protected boolean logIfMatch​(String filterName,
                                     String subjectId,
                                     boolean filterMatched)
      • logMatch

        protected abstract void logMatch​(String filterName,
                                         String subjectId)
      • getLogger

        protected org.slf4j.Logger getLogger()