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 classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringextractParameterName(String segment) voidinsert(RouteEntry entry, T value) voidprotected abstract booleanisParameterSegment(String segment) protected abstract TmatchResult(T candidate, String fullPath) Deprecated.searchWithParams(String path) searchWithParams(String[] segments) intsize()
-
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