Package | Description |
---|---|
org.springframework.test.web.reactive.server |
Support for testing Spring WebFlux server endpoints via
WebTestClient . |
org.springframework.web.server.adapter |
Implementations to adapt to the underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler . |
Modifier and Type | Method and Description |
---|---|
void |
WebTestClientConfigurer.afterConfigurerAdded(WebTestClient.Builder builder,
WebHttpHandlerBuilder httpHandlerBuilder,
ClientHttpConnector connector)
Invoked once only, immediately (i.e.
|
default void |
MockServerConfigurer.beforeServerCreated(WebHttpHandlerBuilder builder)
Invoked just before the mock server is built.
|
Modifier and Type | Method and Description |
---|---|
static WebHttpHandlerBuilder |
WebHttpHandlerBuilder.applicationContext(ApplicationContext context)
Static factory method to create a new builder instance by detecting beans
in an
ApplicationContext . |
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.clone()
Clone this
WebHttpHandlerBuilder . |
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.codecConfigurer(ServerCodecConfigurer codecConfigurer)
Configure the
ServerCodecConfigurer to set on the WebServerExchange . |
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.exceptionHandler(WebExceptionHandler... handlers)
Add the given exception handler(s).
|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.exceptionHandlers(Consumer<List<WebExceptionHandler>> consumer)
Manipulate the "live" list of currently configured exception handlers.
|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.filter(WebFilter... filters)
Add the given filter(s).
|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.filters(Consumer<List<WebFilter>> consumer)
Manipulate the "live" list of currently configured filters.
|
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.forwardedHeaderTransformer(ForwardedHeaderTransformer transformer)
Configure the
ForwardedHeaderTransformer for extracting and/or
removing forwarded headers. |
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.localeContextResolver(LocaleContextResolver localeContextResolver)
Configure the
LocaleContextResolver to set on the
WebServerExchange . |
WebHttpHandlerBuilder |
WebHttpHandlerBuilder.sessionManager(WebSessionManager manager)
Configure the
WebSessionManager to set on the
WebServerExchange . |
static WebHttpHandlerBuilder |
WebHttpHandlerBuilder.webHandler(WebHandler webHandler)
Static factory method to create a new builder instance.
|