类 RouterFunctions.DifferentComposedRouterFunction
java.lang.Object
cn.taketoday.web.handler.function.RouterFunctions.AbstractRouterFunction<ServerResponse>
cn.taketoday.web.handler.function.RouterFunctions.DifferentComposedRouterFunction
- 所有已实现的接口:
RouterFunction<ServerResponse>
- 封闭类:
- RouterFunctions
static final class RouterFunctions.DifferentComposedRouterFunction
extends RouterFunctions.AbstractRouterFunction<ServerResponse>
A composed routing function that first invokes one function, and then invokes
another function (of a different response type) if this route had
no result.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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
-
字段详细资料
-
first
-
second
-
-
构造器详细资料
-
DifferentComposedRouterFunction
-
-
方法详细资料
-
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
-