接口 RouterFunctions.Visitor
- 封闭类:
- RouterFunctions
public static interface RouterFunctions.Visitor
Receives notifications from the logical structure of router functions.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
方法详细资料
startNested
void startNested(RequestPredicate predicate)
Receive notification of the beginning of a nested router function.- 参数:
predicate
- the predicate that applies to the nested router functions- 另请参阅:
RouterFunctions.nest(RequestPredicate, RouterFunction)
endNested
void endNested(RequestPredicate predicate)
Receive notification of the end of a nested router function.- 参数:
predicate
- the predicate that applies to the nested router functions- 另请参阅:
RouterFunctions.nest(RequestPredicate, RouterFunction)
route
void route(RequestPredicate predicate, HandlerFunction<?> handlerFunction)
Receive notification of a standard predicated route to a handler function.- 参数:
predicate
- the predicate that applies to the handler functionhandlerFunction
- the handler function.- 另请参阅:
RouterFunctions.route(RequestPredicate, HandlerFunction)
resources
void resources(Function<ServerRequest,Optional<Resource>> lookupFunction)
Receive notification of a resource router function.- 参数:
lookupFunction
- the lookup function for the resources- 另请参阅:
RouterFunctions.resources(Function)
unknown
void unknown(RouterFunction<?> routerFunction)
Receive notification of an unknown router function. This method is called for router functions that were not created via the variousRouterFunctions
methods.- 参数:
routerFunction
- the router function