Modifier and Type | Field and Description |
---|---|
static PathMatch |
EMPTY_MATCH |
Modifier and Type | Method and Description |
---|---|
boolean |
fullyMatches() |
Map<String,String> |
params()
Returns a mapping of URI names to path params.
|
boolean |
prefixMatches() |
Matcher |
regexMatcher() |
String |
toString() |
public static final PathMatch EMPTY_MATCH
public boolean prefixMatches()
/abc
then this will return true
for /abc
and /abc/def
etc.public boolean fullyMatches()
/abc
then this will return true
for /abc
but false for /abc/def
etc.public Map<String,String> params()
/fruit/{name}
then pathMatch.params().get("name")
will return orange
if the URI was /fruit/orange
public Matcher regexMatcher()
Copyright © 2017–2020. All rights reserved.