Package org.apache.struts2.security
Interface ExcludedPatternsChecker
- All Known Subinterfaces:
NotExcludedAcceptedPatternsChecker
- All Known Implementing Classes:
DefaultExcludedPatternsChecker
,DefaultNotExcludedAcceptedPatternsChecker
public interface ExcludedPatternsChecker
Used across different interceptors to check if given string matches one of the excluded patterns.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionAllow access list of all defined excluded patternsisExcluded
(String value) Checks if value matches any of patterns on exclude listvoid
setExcludedPatterns
(String commaDelimitedPatterns) Sets excluded patterns during runtimevoid
setExcludedPatterns
(String[] patterns) Sets excluded patterns during runtimevoid
setExcludedPatterns
(Set<String> patterns) Sets excluded patterns during runtime
-
Method Details
-
isExcluded
Checks if value matches any of patterns on exclude list- Parameters:
value
- to check- Returns:
- object containing result of matched pattern and pattern itself
-
setExcludedPatterns
Sets excluded patterns during runtime- Parameters:
commaDelimitedPatterns
- comma delimited string with patterns
-
setExcludedPatterns
Sets excluded patterns during runtime- Parameters:
patterns
- array of additional excluded patterns
-
setExcludedPatterns
Sets excluded patterns during runtime- Parameters:
patterns
- set of additional patterns
-
getExcludedPatterns
Allow access list of all defined excluded patterns- Returns:
- set of excluded patterns
-