public class PathTrie<T>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathTrie.Builder<T>
A builder for creating a
PathTrie, which is immutable. |
static class |
PathTrie.Result<T>
The resulting information for a successful path resolution, which includes the value to which
the path maps, as well as the raw (but URL decoded) string values of all path parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PathTrie.Builder<T> |
builder()
Returns a new, path conflict validating
PathTrie.Builder. |
static <T> PathTrie.Builder<T> |
builder(boolean throwOnConflict)
Returns a new
PathTrie.Builder. |
PathTrie.Result<T> |
resolve(com.google.api.server.spi.dispatcher.HttpMethod method,
java.lang.String path)
Attempts to resolve a path.
|
public PathTrie.Result<T> resolve(com.google.api.server.spi.dispatcher.HttpMethod method, java.lang.String path)
public static <T> PathTrie.Builder<T> builder()
PathTrie.Builder.T - the type that the trie will be storingpublic static <T> PathTrie.Builder<T> builder(boolean throwOnConflict)
PathTrie.Builder.T - the type that the trie will be storingthrowOnConflict - whether or not to throw an exception on path conflicts