Package org.openapitools.codegen
Class OpenAPINormalizer.BaseFilter
- java.lang.Object
-
- org.openapitools.codegen.OpenAPINormalizer.BaseFilter
-
- Direct Known Subclasses:
OpenAPINormalizer.Filter,OpenAPINormalizer.SecuritySchemesFilter
- Enclosing class:
- OpenAPINormalizer
protected abstract static class OpenAPINormalizer.BaseFilter extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseFilter(String input)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Set<String>filteringMethods()protected org.slf4j.LoggergetLogger()booleanhasFilter()protected booleanlogIfMatch(String filterName, String subjectId, boolean filterMatched)protected abstract voidlogMatch(String filterName, String subjectId)booleanparse()Perform the parsing of the filter string.protected voidparse(String filterName, String filterValue)Parse non default filtering methods.protected voidparseFails(String filterName, String filterValue)protected Set<String>splitByPipe(String filterValue)Split the filterValue by pipe.abstract StringusageMessage()
-
-
-
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
-
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 filterfilterValue- value of the filter
-
logIfMatch
protected boolean logIfMatch(String filterName, String subjectId, boolean filterMatched)
-
getLogger
protected org.slf4j.Logger getLogger()
-
-