java.lang.Object
org.springframework.extensions.webscripts.Match

public final class Match extends Object
Represents a URI to Web Script match This class is immutable.
Author:
davidc
  • Constructor Details

    • Match

      public Match(String templatePath, Map<String,String> templateVars, String matchPath, WebScript script)
      Construct
      Parameters:
      templatePath - String
      templateVars - Map<String, String>
      matchPath - String
      script - WebScript
    • Match

      public Match(String templatePath, Map<String,String> templateVars, String matchPath)
      Construct
      Parameters:
      templatePath - String
      templateVars - Map<String, String>
      matchPath - String
  • Method Details

    • getKind

      public Match.Kind getKind()
      Gets the kind of Match
    • getTemplate

      public String getTemplate()
      Gets the template request URL that matched the Web Script URL Template
      Returns:
      matching url template
    • getTemplateVars

      public Map<String,String> getTemplateVars()
      Gets the template variable substitutions
      Returns:
      template variable values (value indexed by name)
    • getPath

      public String 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

      public WebScript getWebScript()
      Gets the matching web script
      Returns:
      service (or null, if match kind is URI)
    • toString

      public String toString()
      Overrides:
      toString in class Object