Package | Description |
---|---|
org.springframework.mock.web.reactive.function.server |
Mock objects for the functional web framework.
|
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework.
|
org.springframework.web.reactive.function.server.support |
Classes supporting the
org.springframework.web.reactive.function.server package. |
Modifier and Type | Class and Description |
---|---|
class |
MockServerRequest
Mock implementation of
ServerRequest . |
Modifier and Type | Method and Description |
---|---|
static ServerRequest |
ServerRequest.create(ServerWebExchange exchange,
List<HttpMessageReader<?>> messageReaders)
Create a new
ServerRequest based on the given ServerWebExchange and
message readers. |
Modifier and Type | Method and Description |
---|---|
default Optional<ServerRequest> |
RequestPredicate.nest(ServerRequest request)
Transform the given request into a request used for a nested route.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<R> |
HandlerFilterFunction.filter(ServerRequest request,
HandlerFunction<T> next)
Apply this filter to the given handler function.
|
reactor.core.publisher.Mono<T> |
HandlerFunction.handle(ServerRequest request)
Handle the given request.
|
default Optional<ServerRequest> |
RequestPredicate.nest(ServerRequest request)
Transform the given request into a request used for a nested route.
|
reactor.core.publisher.Mono<HandlerFunction<T>> |
RouterFunction.route(ServerRequest request)
Return the handler function that matches the given request.
|
boolean |
RequestPredicate.test(ServerRequest request)
Evaluate this predicate on the given request.
|
Modifier and Type | Method and Description |
---|---|
static HandlerFilterFunction<?,?> |
HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest,reactor.core.publisher.Mono<ServerRequest>> requestProcessor)
Adapt the given request processor function to a filter function that only operates
on the
ClientRequest . |
static HandlerFilterFunction<?,?> |
HandlerFilterFunction.ofRequestProcessor(Function<ServerRequest,reactor.core.publisher.Mono<ServerRequest>> requestProcessor)
Adapt the given request processor function to a filter function that only operates
on the
ClientRequest . |
static RouterFunction<ServerResponse> |
RouterFunctions.resources(Function<ServerRequest,reactor.core.publisher.Mono<Resource>> lookupFunction)
Route to resources using the provided lookup function.
|
void |
RouterFunctions.Visitor.resources(Function<ServerRequest,reactor.core.publisher.Mono<Resource>> lookupFunction)
Receive notification of a resource router function.
|
Modifier and Type | Class and Description |
---|---|
class |
ServerRequestWrapper
Implementation of the
ServerRequest interface that can be subclassed
to adapt the request in a
handler filter function . |
Modifier and Type | Method and Description |
---|---|
ServerRequest |
ServerRequestWrapper.request()
Return the wrapped request.
|
Constructor and Description |
---|
ServerRequestWrapper(ServerRequest delegate)
Create a new
ServerRequestWrapper that wraps the given request. |