Uses of Interface
org.springframework.web.reactive.function.server.RouterFunction
Packages that use RouterFunction
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server
package.-
Uses of RouterFunction in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type RouterFunctionModifier and TypeMethodDescriptionWebTestClient.bindToRouterFunction
(RouterFunction<?> routerFunction) Use this option to set up a server from aRouterFunction
. -
Uses of RouterFunction in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server that return RouterFunctionModifier and TypeMethodDescriptiondefault RouterFunction<T>
RouterFunction.and
(RouterFunction<T> other) Return a composed routing function that first invokes this function, and then invokes theother
function (of the same response typeT
) if this route had no result.default RouterFunction<T>
RouterFunction.andNest
(RequestPredicate predicate, RouterFunction<T> routerFunction) Return a composed routing function that routes to the given router function if this route does not match and the given request predicate applies.default RouterFunction<?>
RouterFunction.andOther
(RouterFunction<?> other) Return a composed routing function that first invokes this function, and then invokes theother
function (of a different response type) if this route had no result.default RouterFunction<T>
RouterFunction.andRoute
(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Return a composed routing function that routes to the given handler function if this route does not match and the given request predicate applies.RouterFunctions.Builder.build()
Builds theRouterFunction
.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.changeParser
(RouterFunction<T> routerFunction, PathPatternParser parser) Changes thePathPatternParser
on the given router function.default <S extends ServerResponse>
RouterFunction<S>RouterFunction.filter
(HandlerFilterFunction<T, S> filterFunction) Filter all handler functions routed by this function with the given filter function.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.nest
(RequestPredicate predicate, RouterFunction<T> routerFunction) Route to the given router function if the given request predicate applies.static RouterFunction<ServerResponse>
Route requests that match the given pattern to resources relative to the given root location.static RouterFunction<ServerResponse>
RouterFunctions.resources
(String pattern, Resource location, BiConsumer<Resource, HttpHeaders> headersConsumer) Route requests that match the given pattern to resources relative to the given root location.static RouterFunction<ServerResponse>
RouterFunctions.resources
(Function<ServerRequest, reactor.core.publisher.Mono<Resource>> lookupFunction) Route to resources using the provided lookup function.static RouterFunction<ServerResponse>
RouterFunctions.resources
(Function<ServerRequest, reactor.core.publisher.Mono<Resource>> lookupFunction, BiConsumer<Resource, HttpHeaders> headersConsumer) Route to resources using the provided lookup function.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.route
(RequestPredicate predicate, HandlerFunction<T> handlerFunction) Route to the given handler function if the given request predicate applies.default RouterFunction<T>
RouterFunction.withAttribute
(String name, Object value) Return a new routing function with the given attribute.default RouterFunction<T>
RouterFunction.withAttributes
(Consumer<Map<String, Object>> attributesConsumer) Return a new routing function with attributes manipulated with the given consumer.Methods in org.springframework.web.reactive.function.server with parameters of type RouterFunctionModifier and TypeMethodDescriptionRouterFunctions.Builder.add
(RouterFunction<ServerResponse> routerFunction) Adds the given route to this builder.default RouterFunction<T>
RouterFunction.and
(RouterFunction<T> other) Return a composed routing function that first invokes this function, and then invokes theother
function (of the same response typeT
) if this route had no result.default RouterFunction<T>
RouterFunction.andNest
(RequestPredicate predicate, RouterFunction<T> routerFunction) Return a composed routing function that routes to the given router function if this route does not match and the given request predicate applies.default RouterFunction<?>
RouterFunction.andOther
(RouterFunction<?> other) Return a composed routing function that first invokes this function, and then invokes theother
function (of a different response type) if this route had no result.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.changeParser
(RouterFunction<T> routerFunction, PathPatternParser parser) Changes thePathPatternParser
on the given router function.static <T extends ServerResponse>
RouterFunction<T>RouterFunctions.nest
(RequestPredicate predicate, RouterFunction<T> routerFunction) Route to the given router function if the given request predicate applies.static HttpHandler
RouterFunctions.toHttpHandler
(RouterFunction<?> routerFunction) Convert the given router function into aHttpHandler
.static HttpHandler
RouterFunctions.toHttpHandler
(RouterFunction<?> routerFunction, HandlerStrategies strategies) Convert the given router function into aHttpHandler
, using the given strategies.static WebHandler
RouterFunctions.toWebHandler
(RouterFunction<?> routerFunction) Convert the given router function into aWebHandler
.static WebHandler
RouterFunctions.toWebHandler
(RouterFunction<?> routerFunction, HandlerStrategies strategies) Convert the given router function into aWebHandler
, using the given strategies.void
RouterFunctions.Visitor.unknown
(RouterFunction<?> routerFunction) Receive notification of an unknown router function.Method parameters in org.springframework.web.reactive.function.server with type arguments of type RouterFunctionModifier and TypeMethodDescriptionRouterFunctions.Builder.nest
(RequestPredicate predicate, Supplier<RouterFunction<ServerResponse>> routerFunctionSupplier) Route to the supplied router function if the given request predicate applies.RouterFunctions.Builder.path
(String pattern, Supplier<RouterFunction<ServerResponse>> routerFunctionSupplier) Route to the supplied router function if the given path prefix pattern applies. -
Uses of RouterFunction in org.springframework.web.reactive.function.server.support
Methods in org.springframework.web.reactive.function.server.support that return RouterFunctionModifier and TypeMethodDescriptionRouterFunctionMapping.getRouterFunction()
Return the configuredRouterFunction
.Constructors in org.springframework.web.reactive.function.server.support with parameters of type RouterFunctionModifierConstructorDescriptionRouterFunctionMapping
(RouterFunction<?> routerFunction) Create aRouterFunctionMapping
with the givenRouterFunction
.