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.
|
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
org.springframework.web.reactive.support |
Support classes for Spring WebFlux setup.
|
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 | Method and Description |
---|---|
protected WebHandler |
AbstractDispatcherHandlerInitializer.createDispatcherHandler(ApplicationContext applicationContext)
Deprecated.
Create a
DispatcherHandler (or other kind of WebHandler -derived
dispatcher) with the specified ApplicationContext . |
Modifier and Type | Method and Description |
---|---|
protected ServletHttpHandlerAdapter |
AbstractDispatcherHandlerInitializer.createHandlerAdapter(WebHandler webHandler)
Deprecated.
Create a
ServletHttpHandlerAdapter . |
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
WebExceptionHandler s
after the delegate WebHandler . |
class |
FilteringWebHandler
|
class |
WebHandlerDecorator
WebHandler that decorates and delegates to another. |
Modifier and Type | Method and Description |
---|---|
WebHandler |
WebHandlerDecorator.getDelegate() |
WebHandler |
DefaultWebFilterChain.getHandler() |
Constructor and Description |
---|
DefaultWebFilterChain(WebHandler handler,
WebFilter... filters) |
ExceptionHandlingWebHandler(WebHandler delegate,
java.util.List<WebExceptionHandler> handlers) |
FilteringWebHandler(WebHandler webHandler,
java.util.List<WebFilter> filters)
Constructor.
|
WebHandlerDecorator(WebHandler delegate) |