public static interface RouterFunctions.Visitor
Modifier and Type | Method and Description |
---|---|
void |
endNested(RequestPredicate predicate)
Receive notification of the end of a nested router function.
|
void |
resources(Function<ServerRequest,Optional<Resource>> lookupFunction)
Receive notification of a resource router function.
|
void |
route(RequestPredicate predicate,
HandlerFunction<?> handlerFunction)
Receive notification of a standard predicated route to a handler function.
|
void |
startNested(RequestPredicate predicate)
Receive notification of the beginning of a nested router function.
|
void |
unknown(RouterFunction<?> routerFunction)
Receive notification of an unknown router function.
|
void startNested(RequestPredicate predicate)
predicate
- the predicate that applies to the nested router functionsRouterFunctions.nest(RequestPredicate, RouterFunction)
void endNested(RequestPredicate predicate)
predicate
- the predicate that applies to the nested router functionsRouterFunctions.nest(RequestPredicate, RouterFunction)
void route(RequestPredicate predicate, HandlerFunction<?> handlerFunction)
predicate
- the predicate that applies to the handler functionhandlerFunction
- the handler function.RouterFunctions.route(RequestPredicate, HandlerFunction)
void resources(Function<ServerRequest,Optional<Resource>> lookupFunction)
lookupFunction
- the lookup function for the resourcesRouterFunctions.resources(Function)
void unknown(RouterFunction<?> routerFunction)
RouterFunctions
methods.routerFunction
- the router function