@Test public void andOther() { HandlerFunction<ServerResponse> handlerFunction = request -> ServerResponse.ok().body(fromObject("42")); RouterFunction<?> routerFunction1 = request -> Mono.empty(); RouterFunction<ServerResponse> routerFunction2 = request -> Mono.just(handlerFunction); RouterFunction<?> result = routerFunction1.andOther(routerFunction2); assertNotNull(result); MockServerRequest request = MockServerRequest.builder().build(); Mono<? extends HandlerFunction<?>> resultHandlerFunction = result.route(request); StepVerifier.create(resultHandlerFunction) .expectNextMatches(o -> o.equals(handlerFunction)) .expectComplete() .verify(); }
public static Builder route() { return new RouterFunctionBuilder(); }
RouterFunctions { public static Builder route() { return new RouterFunctionBuilder(); } }
RouterFunctions { public static Builder route() { return new RouterFunctionBuilder(); }  }
RouterFunctions { public static Builder route() { return new RouterFunctionBuilder(); }  static Builder route(); static RouterFunction<T> route(
			RequestPredicate predicate, HandlerFunction<T> handlerFunction); static RouterFunction<T> nest(
			RequestPredicate predicate, RouterFunction<T> routerFunction); static RouterFunction<ServerResponse> resources(String pattern, Resource location); static Function<ServerRequest, Mono<Resource>> resourceLookupFunction(String pattern, Resource location); static RouterFunction<ServerResponse> resources(Function<ServerRequest, Mono<Resource>> lookupFunction); static HttpHandler toHttpHandler(RouterFunction<?> routerFunction); static HttpHandler toHttpHandler(RouterFunction<?> routerFunction, HandlerStrategies strategies); static WebHandler toWebHandler(RouterFunction<?> routerFunction); static WebHandler toWebHandler(RouterFunction<?> routerFunction, HandlerStrategies strategies); }
RouterFunctions { public static Builder route() { return new RouterFunctionBuilder(); }  static Builder route(); static RouterFunction<T> route(
			RequestPredicate predicate, HandlerFunction<T> handlerFunction); static RouterFunction<T> nest(
			RequestPredicate predicate, RouterFunction<T> routerFunction); static RouterFunction<ServerResponse> resources(String pattern, Resource location); static Function<ServerRequest, Mono<Resource>> resourceLookupFunction(String pattern, Resource location); static RouterFunction<ServerResponse> resources(Function<ServerRequest, Mono<Resource>> lookupFunction); static HttpHandler toHttpHandler(RouterFunction<?> routerFunction); static HttpHandler toHttpHandler(RouterFunction<?> routerFunction, HandlerStrategies strategies); static WebHandler toWebHandler(RouterFunction<?> routerFunction); static WebHandler toWebHandler(RouterFunction<?> routerFunction, HandlerStrategies strategies); static final String REQUEST_ATTRIBUTE; static final String URI_TEMPLATE_VARIABLES_ATTRIBUTE; }