public class UrlPathPatternMatch extends Object
Modifier | Constructor and Description |
---|---|
protected |
UrlPathPatternMatch(String path,
int matchedParts,
String[] keys,
String[] values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPrefix()
Returns the part of the URL that the pattern matched against.
|
String |
getRemainder()
Returns the remainder of the path after the pattern match has been made.
|
String |
getSuffix()
Returns the remainder of the URL after the pattern was matched.
|
Map<String,String> |
getVars()
Returns a map of the path variables and values.
|
boolean |
hasEmptyVars()
Returns
|
boolean |
hasVars()
Returns
|
ObjectMap |
toMap()
Converts this object to a map.
|
String |
toString() |
protected UrlPathPatternMatch(String path, int matchedParts, String[] keys, String[] values)
path
- The path being matched against. Can be matchedParts
- The number of parts that were matched against the path.keys
- The variable keys. Can be values
- The variable values. Can be public Map<String,String> getVars()
public boolean hasVars()
public boolean hasEmptyVars()
public String getRemainder()
public String getSuffix()
public String getPrefix()
public ObjectMap toMap()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.