Class AbstractRadixRouteTrie<T>
java.lang.Object
com.pixelservices.flash.components.http.routing.trie.AbstractRadixRouteTrie<T>
- Direct Known Subclasses:
DynamicRoutePrefixTrie
,LiteralRouteTrie
,ParameterizedRouteTrie
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
protected static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
extractParameterName
(String segment) void
insert
(RouteEntry entry, T value) void
protected abstract boolean
isParameterSegment
(String segment) protected abstract T
matchResult
(T candidate, String fullPath) Deprecated.searchWithParams
(String path) searchWithParams
(String[] segments) int
size()
-
Field Details
-
root
-
-
Constructor Details
-
AbstractRadixRouteTrie
public AbstractRadixRouteTrie()
-
-
Method Details
-
insert
-
insert
-
search
Deprecated.UsesearchWithParams(String[])
for better performanceSearch for a route match using a raw path string.- Parameters:
path
- The path to search for- Returns:
- The matched value, or null if no match is found
-
searchWithParams
-
searchWithParams
-
size
public int size() -
isParameterSegment
-
extractParameterName
-
matchResult
-
searchWithParams(String[])
for better performance