Package org.apache.struts2.util
Class WildcardUtil
java.lang.Object
org.apache.struts2.util.WildcardUtil
Helper class to convert wildcard expression to regular expression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pattern
compileWildcardPattern
(String pattern) Convert wildcard pattern to Patternstatic boolean
needsBackslashToBeLiteralInRegex
(char c)
-
Constructor Details
-
WildcardUtil
public WildcardUtil()
-
-
Method Details
-
compileWildcardPattern
Convert wildcard pattern to Pattern- Parameters:
pattern
- String containing wildcard pattern- Returns:
- compiled regular expression as a Pattern
-
needsBackslashToBeLiteralInRegex
public static boolean needsBackslashToBeLiteralInRegex(char c)
-