Uses of Class
org.springframework.web.server.adapter.WebHttpHandlerBuilder
Package
Description
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Implementations to adapt to the underlying
org.springframework.http.client.reactive
reactive HTTP adapter
and HttpHandler
.-
Uses of WebHttpHandlerBuilder in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionvoid
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. -
Uses of WebHttpHandlerBuilder in org.springframework.web.server.adapter
Modifier and TypeMethodDescriptionstatic WebHttpHandlerBuilder
WebHttpHandlerBuilder.applicationContext
(ApplicationContext context) Static factory method to create a new builder instance by detecting beans in anApplicationContext
.WebHttpHandlerBuilder.clone()
Clone thisWebHttpHandlerBuilder
.WebHttpHandlerBuilder.codecConfigurer
(ServerCodecConfigurer codecConfigurer) Configure theServerCodecConfigurer
to set on theWebServerExchange
.WebHttpHandlerBuilder.exceptionHandler
(WebExceptionHandler... handlers) Add the given exception handler(s).WebHttpHandlerBuilder.exceptionHandlers
(Consumer<List<WebExceptionHandler>> consumer) Manipulate the "live" list of currently configured exception handlers.Add the given filter(s).Manipulate the "live" list of currently configured filters.WebHttpHandlerBuilder.forwardedHeaderTransformer
(ForwardedHeaderTransformer transformer) Configure theForwardedHeaderTransformer
for extracting and/or removing forwarded headers.WebHttpHandlerBuilder.httpHandlerDecorator
(Function<HttpHandler, HttpHandler> handlerDecorator) Configure aFunction
to decorate theHttpHandler
returned by this builder which effectively wraps the entireWebExceptionHandler
-WebFilter
-WebHandler
processing chain.WebHttpHandlerBuilder.localeContextResolver
(LocaleContextResolver localeContextResolver) Configure theLocaleContextResolver
to set on theWebServerExchange
.WebHttpHandlerBuilder.observationConvention
(ServerRequestObservationConvention observationConvention) Configure aServerRequestObservationConvention
to use for server observations.WebHttpHandlerBuilder.observationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) Configure anObservationRegistry
for recording server exchange observations.WebHttpHandlerBuilder.sessionManager
(WebSessionManager manager) Configure theWebSessionManager
to set on theWebServerExchange
.static WebHttpHandlerBuilder
WebHttpHandlerBuilder.webHandler
(WebHandler webHandler) Static factory method to create a new builder instance.