public class PathTemplateMatcher<T> extends 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 and Description |
---|---|
static class |
PathTemplateMatcher.PathMatchResult<T> |
Constructor and Description |
---|
PathTemplateMatcher() |
Modifier and Type | Method and Description |
---|---|
PathTemplateMatcher<T> |
add(PathTemplate template,
T value) |
PathTemplateMatcher<T> |
add(String pathTemplate,
T value) |
PathTemplateMatcher<T> |
addAll(PathTemplateMatcher<T> pathTemplateMatcher) |
T |
get(String template) |
Set<PathTemplate> |
getPathTemplates() |
PathTemplateMatcher.PathMatchResult<T> |
match(String path) |
PathTemplateMatcher<T> |
remove(String pathTemplate) |
public PathTemplateMatcher.PathMatchResult<T> match(String path)
public PathTemplateMatcher<T> add(PathTemplate template, T value)
public PathTemplateMatcher<T> add(String pathTemplate, T value)
public PathTemplateMatcher<T> addAll(PathTemplateMatcher<T> pathTemplateMatcher)
public Set<PathTemplate> getPathTemplates()
public PathTemplateMatcher<T> remove(String pathTemplate)
Copyright © 2020 JBoss by Red Hat. All rights reserved.