public class PathTemplateMatcher<T>
extends java.lang.Object
TODO: we can probably do this faster using a trie type structure, but I think the current impl should perform ok most of the time
Modifier and Type | Class | Description |
---|---|---|
static class |
PathTemplateMatcher.PathMatchResult<T> |
Constructor | Description |
---|---|
PathTemplateMatcher() |
Modifier and Type | Method | Description |
---|---|---|
PathTemplateMatcher<T> |
add(PathTemplate template,
T value) |
|
PathTemplateMatcher<T> |
add(java.lang.String pathTemplate,
T value) |
|
PathTemplateMatcher<T> |
addAll(PathTemplateMatcher<T> pathTemplateMatcher) |
|
T |
get(java.lang.String template) |
|
java.util.Set<PathTemplate> |
getPathTemplates() |
|
PathTemplateMatcher.PathMatchResult<T> |
match(java.lang.String path) |
|
PathTemplateMatcher<T> |
remove(java.lang.String pathTemplate) |
public PathTemplateMatcher.PathMatchResult<T> match(java.lang.String path)
public PathTemplateMatcher<T> add(PathTemplate template, T value)
public PathTemplateMatcher<T> add(java.lang.String pathTemplate, T value)
public PathTemplateMatcher<T> addAll(PathTemplateMatcher<T> pathTemplateMatcher)
public java.util.Set<PathTemplate> getPathTemplates()
public PathTemplateMatcher<T> remove(java.lang.String pathTemplate)
public T get(java.lang.String template)
Copyright © 2018. All rights reserved.