Package org.apache.juneau.rest.util
Class UrlPathMatch
java.lang.Object
org.apache.juneau.rest.util.UrlPathMatch
Represents a URL path pattern match.
 For example, given the pattern "/foo/{bar}/*"  and the path "/foo/123/baz/qux" , this match gives
 you a map containing "{bar:123}"  and a remainder string containing "baz/qux" .
 
See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedUrlPathMatch(String path, int matchedParts, String[] keys, String[] values) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the part of the URL that the pattern matched against.Returns the remainder of the path after the pattern match has been made.Returns the remainder of the URL after the pattern was matched.getVars()Returns a map of the path variables and values.booleanReturnstrue if any of the variable values are blank.booleanhasVars()Returnstrue if this match contains one or more variables.toString()
- 
Constructor Details- 
UrlPathMatchConstructor.- Parameters:
- path- The path being matched against. Can be- null .
- matchedParts- The number of parts that were matched against the path.
- keys- The variable keys. Can be- null .
- values- The variable values. Can be- null .
 
 
- 
- 
Method Details- 
getVarsReturns a map of the path variables and values.- Returns:
- An unmodifiable map of variable keys/values.
   
 Returns an empty map if no variables were found in the path.
 
- 
hasVarsReturnstrue if this match contains one or more variables.- Returns:
- true if this match contains one or more variables.
 
- 
hasEmptyVarsReturnstrue if any of the variable values are blank.- Returns:
- true if any of the variable values are blank.
 
- 
getRemainderReturns the remainder of the path after the pattern match has been made.Same as {#link getSuffix()but trims the leading slash if there is one.- Returns:
- The remainder of the path after the pattern match has been made.
 
- 
getSuffixReturns the remainder of the URL after the pattern was matched.- Returns:
- The remainder of the URL after the pattern was matched.
 
 Can benull if nothing remains to be matched.
 Otherwise, always starts with'/' .
 
- 
getPrefixReturns the part of the URL that the pattern matched against.- Returns:
- The part of the URL that the pattern matched against.
 
 Can benull if nothing matched.
 Otherwise, always starts with'/' .
 
- 
toString
 
-