| Modifier and Type | Method and Description |
|---|---|
static <T> Router.Builder<T> |
Router.builder() |
static <T> Router.Builder<T> |
Router.builder(Class<T> clazz) |
Router.Builder<T> |
Router.Builder.optionalTrailingSlash(boolean optional)
Set trailing slash matching to be optional or not.
|
Router.Builder<T> |
Router.Builder.route(Route route,
T target)
Register a route.
|
Router.Builder<T> |
Router.Builder.route(String method,
String path,
T target)
Register a routing path and method.
|
Copyright © 2015. All Rights Reserved.