类 RouterFunctions.FilteredRouterFunction<T extends ServerResponse,S extends ServerResponse>
java.lang.Object
cn.taketoday.web.handler.function.RouterFunctions.FilteredRouterFunction<T,S>
- 类型参数:
T- the type of the handler function to filterS- the type of the response of the function
- 所有已实现的接口:
RouterFunction<S>
- 封闭类:
- RouterFunctions
static final class RouterFunctions.FilteredRouterFunction<T extends ServerResponse,S extends ServerResponse>
extends Object
implements RouterFunction<S>
Filter the specified handler functions with the given
filter function.
-
字段概要
字段 -
构造器概要
构造器构造器说明FilteredRouterFunction(RouterFunction<T> routerFunction, HandlerFilterFunction<T, S> filterFunction) -
方法概要
修饰符和类型方法说明voidaccept(RouterFunctions.Visitor visitor) Accept the given visitor.route(ServerRequest request) Return the handler function that matches the given request.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
-
字段详细资料
-
routerFunction
-
filterFunction
private final HandlerFilterFunction<T extends ServerResponse,S extends ServerResponse> filterFunction
-
-
构造器详细资料
-
FilteredRouterFunction
public FilteredRouterFunction(RouterFunction<T> routerFunction, HandlerFilterFunction<T, S> filterFunction)
-
-
方法详细资料
-
route
从接口复制的说明:RouterFunctionReturn the handler function that matches the given request.- 指定者:
route在接口中RouterFunction<T extends ServerResponse>- 参数:
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.- 指定者:
accept在接口中RouterFunction<T extends ServerResponse>- 参数:
visitor- the visitor to accept
-
toString
-