public class PathDispatcher<ContextT extends DispatcherContext>
extends java.lang.Object
DispatcherHandler is allowed to throw an
IOException in the event that a low-level error (e.g. error writing a servlet response)
takes place. This is a fairly simple wrapper around PathTrie.| Modifier and Type | Class and Description |
|---|---|
static class |
PathDispatcher.Builder<T extends DispatcherContext> |
| Modifier and Type | Method and Description |
|---|---|
static <T extends DispatcherContext> |
builder() |
boolean |
dispatch(java.lang.String httpMethod,
java.lang.String path,
ContextT context)
Attempts to dispatch to a handler, given an HTTP method and path.
|
public boolean dispatch(java.lang.String httpMethod,
java.lang.String path,
ContextT context)
throws java.io.IOException
java.io.IOException - if the underlying handler threw an exception.public static <T extends DispatcherContext> PathDispatcher.Builder<T> builder()