Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.web.reactive |
Top-level package for the
spring-webflux module that contains
DispatcherHandler , the main entry
point for WebFlux server endpoint processing including key contracts used to
map requests to handlers, invoke them, and process the result. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework for Reactive environments.
|
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
org.springframework.web.server.adapter |
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler . |
org.springframework.web.server.handler |
Provides common WebHandler implementations and a
WebHandlerDecorator . |
Modifier and Type | Method and Description |
---|---|
static WebTestClient.MockServerSpec<?> |
WebTestClient.bindToWebHandler(WebHandler webHandler)
Integration testing with a "mock" server targeting the given WebHandler.
|
Modifier and Type | Class and Description |
---|---|
class |
DispatcherHandler
Central dispatcher for HTTP request handlers/controllers.
|
Modifier and Type | Method and Description |
---|---|
static WebHandler |
RouterFunctions.toWebHandler(RouterFunction<?> routerFunction)
Convert the given router function into a
WebHandler . |
static WebHandler |
RouterFunctions.toWebHandler(RouterFunction<?> routerFunction,
HandlerStrategies strategies)
Convert the given router function into a
WebHandler ,
using the given strategies. |
Modifier and Type | Class and Description |
---|---|
class |
ResourceWebHandler
HttpRequestHandler that serves static resources in an optimized way
according to the guidelines of Page Speed, YSlow, etc. |
Modifier and Type | Class and Description |
---|---|
class |
HttpWebHandlerAdapter
Default adapter of
WebHandler to the HttpHandler contract. |
Modifier and Type | Method and Description |
---|---|
static WebHttpHandlerBuilder |
WebHttpHandlerBuilder.webHandler(WebHandler webHandler)
Static factory method to create a new builder instance.
|
Constructor and Description |
---|
HttpWebHandlerAdapter(WebHandler delegate) |
Modifier and Type | Class and Description |
---|---|
class |
ExceptionHandlingWebHandler
WebHandler decorator that invokes one or more
WebExceptionHandlers
after the delegate WebHandler . |
class |
FilteringWebHandler
|
class |
WebHandlerDecorator
WebHandler that decorates and delegates to another WebHandler . |
Modifier and Type | Method and Description |
---|---|
WebHandler |
WebHandlerDecorator.getDelegate()
Return the wrapped delegate.
|
WebHandler |
DefaultWebFilterChain.getHandler() |
Constructor and Description |
---|
DefaultWebFilterChain(WebHandler handler,
List<WebFilter> filters)
Public constructor with the list of filters and the target handler to use.
|
DefaultWebFilterChain(WebHandler handler,
WebFilter... filters)
Deprecated.
as of 5.1 this constructor is deprecated in favor of
DefaultWebFilterChain(WebHandler, List) . |
ExceptionHandlingWebHandler(WebHandler delegate,
List<WebExceptionHandler> handlers)
Create an
ExceptionHandlingWebHandler for the given delegate. |
FilteringWebHandler(WebHandler handler,
List<WebFilter> filters)
Constructor.
|
WebHandlerDecorator(WebHandler delegate)
Create a
WebHandlerDecorator for the given delegate. |