public class PathMatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
List<com.atlassian.router.internal.PathMatcher.SegmentMatcher> |
matchers |
Map<String,String> |
params |
com.atlassian.router.internal.PathMatcher.TailMatcher |
tail |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getParams()
returns the map associated with
the most recent invokation of matches,
returns an empty map if matches failed.
|
boolean |
matches(String path)
In the event the path matches, then
get params will return
the params derived from this path
|
static PathMatcher |
parse(InputStream stream) |
static PathMatcher |
parse(String query) |
public final List<com.atlassian.router.internal.PathMatcher.SegmentMatcher> matchers
public final com.atlassian.router.internal.PathMatcher.TailMatcher tail
public static PathMatcher parse(String query) throws IOException
IOExceptionpublic static PathMatcher parse(InputStream stream) throws IOException
IOExceptionpublic boolean matches(String path)
path - to matchCopyright © 2018 Atlassian. All rights reserved.