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