类 RouterFunctions.ResourcesRouterFunction
java.lang.Object
cn.taketoday.web.handler.function.RouterFunctions.AbstractRouterFunction<ServerResponse>
cn.taketoday.web.handler.function.RouterFunctions.ResourcesRouterFunction
- 所有已实现的接口:
RouterFunction<ServerResponse>
- 封闭类:
- RouterFunctions
private static class RouterFunctions.ResourcesRouterFunction
extends RouterFunctions.AbstractRouterFunction<ServerResponse>
-
字段概要
字段 -
构造器概要
构造器构造器说明ResourcesRouterFunction(Function<ServerRequest, Optional<cn.taketoday.core.io.Resource>> lookupFunction) -
方法概要
修饰符和类型方法说明voidaccept(RouterFunctions.Visitor visitor) Accept the given visitor.route(ServerRequest request) Return the handler function that matches the given request.从类继承的方法 cn.taketoday.web.handler.function.RouterFunctions.AbstractRouterFunction
toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.handler.function.RouterFunction
and, andNest, andOther, andRoute, filter, withAttribute, withAttributes
-
字段详细资料
-
lookupFunction
-
-
构造器详细资料
-
ResourcesRouterFunction
public ResourcesRouterFunction(Function<ServerRequest, Optional<cn.taketoday.core.io.Resource>> lookupFunction)
-
-
方法详细资料
-
route
从接口复制的说明:RouterFunctionReturn the handler function that matches the given request.- 参数:
request- the request to route- 返回:
- an
Optionaldescribing theHandlerFunctionthat matches this request, or an emptyOptionalif there is no match
-
accept
从接口复制的说明:RouterFunctionAccept the given visitor. Default implementation callsRouterFunctions.Visitor.unknown(RouterFunction); composedRouterFunctionimplementations are expected to callacceptfor all components that make up this router function.- 参数:
visitor- the visitor to accept
-