This only matches a single level of a request, e.g if you have a request that takes the form:
/foo/bar
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile T | |
| private final ConcurrentMap | |
| private volatile int[] | lengths
lengths of all registered paths |
| private final SubstringMap | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized PathMatcher | |
| public synchronized PathMatcher | addPrefixPath(final String
The path path, final T The handler handler)Adds a path prefix and a handler for that path. |
| private void | |
| public synchronized PathMatcher | |
| public T | |
| public Set | |
| public Set | |
| public Map | |
| public T | |
| public PathMatcher. | |
| public synchronized PathMatcher | |
| public synchronized PathMatcher | |
| public synchronized PathMatcher |
| defaultHandler | back to summary |
|---|---|
| private volatile T defaultHandler | |
| exactPathMatches | back to summary |
|---|---|
| private final ConcurrentMap<String, T> exactPathMatches | |
| lengths | back to summary |
|---|---|
| private volatile int[] lengths lengths of all registered paths | |
| paths | back to summary |
|---|---|
| private final SubstringMap<T> paths | |
| STRING_PATH_SEPARATOR | back to summary |
|---|---|
| private static final String STRING_PATH_SEPARATOR | |
| PathMatcher | back to summary |
|---|---|
| public PathMatcher(final T defaultHandler) | |
| PathMatcher | back to summary |
|---|---|
| public PathMatcher() | |
| addExactPath | back to summary |
|---|---|
| public synchronized PathMatcher | |
| addPrefixPath | back to summary |
|---|---|
| public synchronized PathMatcher Adds a path prefix and a handler for that path. If the path does not start with a / then one will be prepended. The match is done on a prefix bases, so registering /foo will also match /foo/bar. Exact path matches are taken into account first. If / is specified as the path then it will replace the default handler.
| |
| buildLengths | back to summary |
|---|---|
| private void buildLengths() | |
| clearPaths | back to summary |
|---|---|
| public synchronized PathMatcher | |
| getExactPath | back to summary |
|---|---|
| public T getExactPath(final String path) | |
| getExactPathMatchesSet | back to summary |
|---|---|
| public Set | |
| getPathMatchesSet | back to summary |
|---|---|
| public Set | |
| getPaths | back to summary |
|---|---|
| public Map | |
| getPrefixPath | back to summary |
|---|---|
| public T getPrefixPath(final String path) | |
| match | back to summary |
|---|---|
| public PathMatcher. Matches a path against the registered handlers.
| |
| removeExactPath | back to summary |
|---|---|
| public synchronized PathMatcher | |
| removePath | back to summary |
|---|---|
| public synchronized PathMatcher Deprecated
| |
| removePrefixPath | back to summary |
|---|---|
| public synchronized PathMatcher | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final T |
| Access | Constructor and Description |
|---|---|
| public |
| matched | back to summary |
|---|---|
| private final String matched | |
| remaining | back to summary |
|---|---|
| private final String remaining | |
| value | back to summary |
|---|---|
| private final T value | |
| PathMatch | back to summary |
|---|---|
| public PathMatch(String matched, String remaining, T value) | |
| getMatched | back to summary |
|---|---|
| public String getMatched() | |
| getRemaining | back to summary |
|---|---|
| public String getRemaining() | |
| getValue | back to summary |
|---|---|
| public T getValue() | |