接口 RouterFunctions.Visitor
- 封闭类:
- RouterFunctions
public static interface RouterFunctions.Visitor
Receives notifications from the logical structure of router functions.
-
方法概要
修饰符和类型方法说明voidattributes(Map<String, Object> attributes) Receive notification of a router function with attributes.voidendNested(RequestPredicate predicate) Receive notification of the end of a nested router function.voidresources(Function<ServerRequest, Optional<cn.taketoday.core.io.Resource>> lookupFunction) Receive notification of a resource router function.voidroute(RequestPredicate predicate, HandlerFunction<?> handlerFunction) Receive notification of a standard predicated route to a handler function.voidstartNested(RequestPredicate predicate) Receive notification of the beginning of a nested router function.voidunknown(RouterFunction<?> routerFunction) Receive notification of an unknown router function.
-
方法详细资料
-
startNested
Receive notification of the beginning of a nested router function.- 参数:
predicate- the predicate that applies to the nested router functions- 另请参阅:
-
endNested
Receive notification of the end of a nested router function.- 参数:
predicate- the predicate that applies to the nested router functions- 另请参阅:
-
route
Receive notification of a standard predicated route to a handler function.- 参数:
predicate- the predicate that applies to the handler functionhandlerFunction- the handler function.- 另请参阅:
-
resources
Receive notification of a resource router function.- 参数:
lookupFunction- the lookup function for the resources- 另请参阅:
-
attributes
Receive notification of a router function with attributes. The given attributes apply to the router notification that follows this one.- 参数:
attributes- the attributes that apply to the following router
-
unknown
Receive notification of an unknown router function. This method is called for router functions that were not created via the variousRouterFunctionsmethods.- 参数:
routerFunction- the router function
-