Package org.apache.struts2.config.impl
Class NamespaceMatcher
java.lang.Object
org.apache.struts2.config.impl.AbstractMatcher<NamespaceMatch>
org.apache.struts2.config.impl.NamespaceMatcher
- All Implemented Interfaces:
- Serializable
Matches namespace strings against a wildcard pattern matcher
- Since:
- 2.1
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNamespaceMatcher(PatternMatcher<?> patternMatcher, Set<String> namespaces) NamespaceMatcher(PatternMatcher<?> patternMatcher, Set<String> namespaces, boolean appendNamedParameters) Matches namespace strings against a wildcard pattern matcher
- 
Method SummaryModifier and TypeMethodDescriptionprotected NamespaceMatchClones the target object and its children, replacing various properties with the values of the wildcard-matched strings.Methods inherited from class org.apache.struts2.config.impl.AbstractMatcheraddPattern, convertParam, freeze, match, replaceParameters
- 
Constructor Details- 
NamespaceMatcher
- 
NamespaceMatcherpublic NamespaceMatcher(PatternMatcher<?> patternMatcher, Set<String> namespaces, boolean appendNamedParameters) Matches namespace strings against a wildcard pattern matcher- Parameters:
- patternMatcher- pattern matcher
- namespaces- A set of namespaces to process
- appendNamedParameters- To append named parameters or not
- Since:
- 2.5.23 See WW-5065
 
 
- 
- 
Method Details- 
convertDescription copied from class:AbstractMatcherClones the target object and its children, replacing various properties with the values of the wildcard-matched strings. - Specified by:
- convertin class- AbstractMatcher<NamespaceMatch>
- Parameters:
- path- The requested path
- orig- The original object
- vars- A Map of wildcard-matched strings
- Returns:
- A cloned object with appropriate properties replaced with wildcard-matched values
 
 
-