Class APISpecIncludeExcludeFilter


  • public class APISpecIncludeExcludeFilter
    extends Object
    • Constructor Detail

      • APISpecIncludeExcludeFilter

        public APISpecIncludeExcludeFilter()
    • Method Detail

      • setPaths

        public void setPaths​(List<String> paths)
      • setTags

        public void setTags​(List<String> tags)
      • setModels

        public void setModels​(List<String> models)
      • getHttpMethods

        public List<String> getHttpMethods​(String path,
                                           boolean includeWildcard)
      • filter

        public boolean filter​(String path,
                              String httpMethod,
                              List<String> tags,
                              boolean useWildcard,
                              boolean pathAndTags)
      • addPath

        public void addPath​(String[] pathAndVerbs)
        This method is used for tests only
        Parameters:
        pathAndVerbs - an array of path and verbs to include or exclude
      • addTag

        public void addTag​(String[] tags)
        This method is used for tests only
        Parameters:
        tags - a list of tags to include or exclude
      • addModel

        public void addModel​(String[] models)
        This method is used for tests only
        Parameters:
        models - a list of models to include or exclude