Package io.undertow.util
Class PathTemplateMatcher<T>
java.lang.Object
io.undertow.util.PathTemplateMatcher<T>
Utility class that provides fast path matching of path templates. Templates are stored in a map based on the stem of the template,
and matches longest stem first.
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
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(PathTemplate template, T value) addAll
(PathTemplateMatcher<T> pathTemplateMatcher)
-
Constructor Details
-
PathTemplateMatcher
public PathTemplateMatcher()
-
-
Method Details
-
match
-
add
-
add
-
addAll
-
getPathTemplates
-
remove
-
get
-