Klasse MatchingContext

java.lang.Object
org.xbib.net.path.spring.MatchingContext

public class 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.
  • Felddetails

    • candidate

      public final PathContainer candidate
    • pathElements

      public final List<PathContainer.Element> pathElements
    • pathLength

      public final int pathLength
    • extractingVariables

      public boolean extractingVariables
    • determineRemainingPath

      public boolean determineRemainingPath
    • remainingPathIndex

      public int remainingPathIndex
  • Konstruktordetails

    • MatchingContext

      public MatchingContext(PathPattern pathPattern, PathContainer pathContainer, boolean extractVariables)
  • Methodendetails

    • setMatchAllowExtraPath

      public void setMatchAllowExtraPath()
    • isMatchOptionalTrailingSeparator

      public boolean isMatchOptionalTrailingSeparator()
    • set

      public void set(String key, String value, MultiValueMap<String,String> parameters)
    • getPathMatchResult

      public PathMatchInfo getPathMatchResult()
    • isSeparator

      public boolean isSeparator(int pathIndex)
      Return if element at specified index is a separator.
      Parameter:
      pathIndex - possible index of a separator
      Gibt zurück:
      true if element is a separator
    • pathElementValue

      public String pathElementValue(int pathIndex)
      Return the decoded value of the specified element.
      Parameter:
      pathIndex - path element index
      Gibt zurück:
      the decoded value