类 PathPattern.MatchingContext

java.lang.Object
cn.taketoday.web.util.pattern.PathPattern.MatchingContext
封闭类:
PathPattern

class PathPattern.MatchingContext extends Object
Encapsulates context when attempting a match. Includes some fixed state like the candidate currently being considered for a match but also some accumulators for extracted variables.
  • 字段详细资料

    • candidate

      public final PathContainer candidate
    • pathElements

      public final List<PathContainer.Element> pathElements
    • pathLength

      public final int pathLength
    • extractedUriVariables

      @Nullable private Map<String,String> extractedUriVariables
    • extractedMatrixVariables

      @Nullable private Map<String,cn.taketoday.util.MultiValueMap<String,String>> extractedMatrixVariables
    • extractingVariables

      public boolean extractingVariables
    • determineRemainingPath

      public boolean determineRemainingPath
    • remainingPathIndex

      public int remainingPathIndex
    • uriVariables

      @Nullable private List<String> uriVariables
  • 构造器详细资料

    • MatchingContext

      public MatchingContext(PathContainer pathContainer, boolean extractVariables)
  • 方法详细资料

    • setMatchAllowExtraPath

      public void setMatchAllowExtraPath()
    • isMatchOptionalTrailingSeparator

      public boolean isMatchOptionalTrailingSeparator()
    • set

      public void set(String key, String value, @Nullable cn.taketoday.util.MultiValueMap<String,String> parameters)
    • getPathMatchResult

      public PathMatchInfo getPathMatchResult()
    • isSeparator

      boolean isSeparator(int pathIndex)
      Return if element at specified index is a separator.
      参数:
      pathIndex - possible index of a separator
      返回:
      true if element is a separator
    • pathElementValue

      String pathElementValue(int pathIndex)
      Return the decoded value of the specified element.
      参数:
      pathIndex - path element index
      返回:
      the decoded value