Class Match
java.lang.Object
org.springframework.extensions.webscripts.Match
Represents a URI to Web Script match
This class is immutable.
- Author:
- davidc
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Match
public Match(String templatePath, Map<String, String> templateVars, String matchPath, WebScript script) Construct- Parameters:
templatePath- StringtemplateVars- Map<String, String>matchPath- Stringscript- WebScript
-
Match
Construct- Parameters:
templatePath- StringtemplateVars- Map<String, String>matchPath- String
-
-
Method Details
-
getKind
Gets the kind of Match -
getTemplate
Gets the template request URL that matched the Web Script URL Template- Returns:
- matching url template
-
getTemplateVars
Gets the template variable substitutions- Returns:
- template variable values (value indexed by name)
-
getPath
Gets the static (i.e. without tokens) part of the request URL that matched the Web Script URL Template- Returns:
- matching static url path
-
getWebScript
Gets the matching web script- Returns:
- service (or null, if match kind is URI)
-
toString
-