Uses of Interface
org.springframework.web.server.ServerWebExchange
Package
Description
Mock objects for the functional web framework.
Mock implementations of Spring's reactive server web API abstractions.
Support classes for web data binding.
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.WebFilter
implementations for use in
reactive web applications.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.RequestedContentTypeResolver
strategy and implementations to resolve the requested content type for a
given request.Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server
package.Provides HandlerMapping implementations including abstract base classes.
Support classes for serving static resources.
Support for various programming model styles including the invocation of
different types of handlers, e.g.
RequestCondition
and implementations for matching requests based on different criteria.Infrastructure for handler method processing.
Infrastructure for annotation-based handler method processing.
Support for result handling through view resolution.
Support classes for the integration of
FreeMarker
as Spring web view technology.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Server support for WebSocket interactions.
Server-side support classes for WebSocket requests.
Holds implementations of
RequestUpgradeStrategy
.Core interfaces and classes for Spring's generic, reactive web support.
Implementations to adapt to the underlying
org.springframework.http.client.reactive
reactive HTTP adapter
and HttpHandler
.Provides common WebHandler implementations and a
WebHandlerDecorator
.Locale related support classes.
Auxiliary interfaces and implementation classes for
WebSession
support.-
Uses of ServerWebExchange in org.springframework.mock.web.reactive.function.server
-
Uses of ServerWebExchange in org.springframework.mock.web.server
Modifier and TypeClassDescriptionfinal class
Extension ofDefaultServerWebExchange
for use in tests, along withMockServerHttpRequest
andMockServerHttpResponse
. -
Uses of ServerWebExchange in org.springframework.web.bind.support
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
WebExchangeDataBinder.bind
(ServerWebExchange exchange) Bind query parameters, form data, or multipart form data to the binder target.WebExchangeDataBinder.extractValuesToBind
(ServerWebExchange exchange) Combine query params and form data for multipart form data from the body of the request into aMap<String, Object>
of values to use for data binding purposes.WebExchangeDataBinder.getValuesToBind
(ServerWebExchange exchange) Obtain the values for data binding. -
Uses of ServerWebExchange in org.springframework.web.cors.reactive
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
CorsWebFilter.filter
(ServerWebExchange exchange, WebFilterChain chain) reactor.core.publisher.Mono<Void>
PreFlightRequestWebFilter.filter
(ServerWebExchange exchange, WebFilterChain chain) CorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) Return aCorsConfiguration
based on the incoming request.UrlBasedCorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) protected boolean
DefaultCorsProcessor.handleInternal
(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest) Handle the given request.reactor.core.publisher.Mono<Void>
PreFlightRequestHandler.handlePreFlight
(ServerWebExchange exchange) Handle a pre-flight request by finding and applying the CORS configuration that matches the expected actual request.boolean
CorsProcessor.process
(CorsConfiguration configuration, ServerWebExchange exchange) Process a request using the givenCorsConfiguration
.boolean
DefaultCorsProcessor.process
(CorsConfiguration config, ServerWebExchange exchange) -
Uses of ServerWebExchange in org.springframework.web.filter.reactive
Modifier and TypeMethodDescriptionstatic Optional<ServerWebExchange>
ServerWebExchangeContextFilter.get
(reactor.util.context.Context context) Access theServerWebExchange
from the Reactor Context, if available, which is ifServerWebExchangeContextFilter
is configured for use and the give context was obtained from a request processing chain.Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
HiddenHttpMethodFilter.filter
(ServerWebExchange exchange, WebFilterChain chain) Transform an HTTP POST into another method based onmethodParamName
.reactor.core.publisher.Mono<Void>
ServerWebExchangeContextFilter.filter
(ServerWebExchange exchange, WebFilterChain chain) -
Uses of ServerWebExchange in org.springframework.web.reactive
Modifier and TypeMethodDescriptionBindingContext.createDataBinder
(ServerWebExchange exchange, Object target, String name) Create aWebExchangeDataBinder
to apply data binding and validation with on the target, command object.BindingContext.createDataBinder
(ServerWebExchange exchange, String name) Create aWebExchangeDataBinder
without a target object for type conversion of request values to simple types.reactor.core.publisher.Mono<Object>
HandlerMapping.getHandler
(ServerWebExchange exchange) Return a handler for this request.reactor.core.publisher.Mono<Void>
DispatcherHandler.handle
(ServerWebExchange exchange) reactor.core.publisher.Mono<HandlerResult>
HandlerAdapter.handle
(ServerWebExchange exchange, Object handler) Handle the request with the given handler.reactor.core.publisher.Mono<Void>
DispatcherHandler.handlePreFlight
(ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
HandlerResultHandler.handleResult
(ServerWebExchange exchange, HandlerResult result) Process the given result modifying response headers and/or writing data to the response.protected WebExchangeDataBinder
BindingContext.initDataBinder
(WebExchangeDataBinder binder, ServerWebExchange exchange) Initialize the data binder instance for the given exchange. -
Uses of ServerWebExchange in org.springframework.web.reactive.accept
Modifier and TypeMethodDescriptionFixedContentTypeResolver.resolveMediaTypes
(ServerWebExchange exchange) HeaderContentTypeResolver.resolveMediaTypes
(ServerWebExchange exchange) ParameterContentTypeResolver.resolveMediaTypes
(ServerWebExchange exchange) RequestedContentTypeResolver.resolveMediaTypes
(ServerWebExchange exchange) Resolve the given request to a list of requested media types. -
Uses of ServerWebExchange in org.springframework.web.reactive.function.server
Modifier and TypeMethodDescriptionServerRequest.exchange()
Get the web exchange that this request is based on.Modifier and TypeMethodDescriptionstatic ServerRequest
ServerRequest.create
(ServerWebExchange exchange, List<HttpMessageReader<?>> messageReaders) Create a newServerRequest
based on the givenServerWebExchange
and message readers.reactor.core.publisher.Mono<Void>
ServerResponse.writeTo
(ServerWebExchange exchange, ServerResponse.Context context) Write this response to the given web exchange.Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ServerResponse>
ServerResponse.HeadersBuilder.build
(BiFunction<ServerWebExchange, ServerResponse.Context, reactor.core.publisher.Mono<Void>> writeFunction) Build the response entity with a custom writer function. -
Uses of ServerWebExchange in org.springframework.web.reactive.function.server.support
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<?>
RouterFunctionMapping.getHandlerInternal
(ServerWebExchange exchange) reactor.core.publisher.Mono<HandlerResult>
HandlerFunctionAdapter.handle
(ServerWebExchange exchange, Object handler) reactor.core.publisher.Mono<Void>
ServerResponseResultHandler.handleResult
(ServerWebExchange exchange, HandlerResult result) -
Uses of ServerWebExchange in org.springframework.web.reactive.handler
Modifier and TypeMethodDescriptionprotected CorsConfiguration
AbstractHandlerMapping.getCorsConfiguration
(Object handler, ServerWebExchange exchange) Retrieve the CORS configuration for the given handler.reactor.core.publisher.Mono<Object>
AbstractHandlerMapping.getHandler
(ServerWebExchange exchange) protected abstract reactor.core.publisher.Mono<?>
AbstractHandlerMapping.getHandlerInternal
(ServerWebExchange exchange) Look up a handler for the given request, returning an emptyMono
if no specific one is found.reactor.core.publisher.Mono<Object>
AbstractUrlHandlerMapping.getHandlerInternal
(ServerWebExchange exchange) protected Object
AbstractUrlHandlerMapping.lookupHandler
(PathContainer lookupPath, ServerWebExchange exchange) Look up a handler instance for the given URL lookup path.protected void
AbstractUrlHandlerMapping.validateHandler
(Object handler, ServerWebExchange exchange) Validate the given handler against the current request.Modifier and TypeMethodDescriptionvoid
AbstractUrlHandlerMapping.setHandlerPredicate
(BiPredicate<Object, ServerWebExchange> handlerPredicate) Configure a predicate for extended matching of the handler that was matched by URL path. -
Uses of ServerWebExchange in org.springframework.web.reactive.resource
Modifier and TypeMethodDescriptionprotected String
CachingResourceResolver.computeKey
(ServerWebExchange exchange, String requestPath) final reactor.core.publisher.Mono<String>
ResourceUrlProvider.getForUriString
(String uriString, ServerWebExchange exchange) Get the public resource URL for the given URI string.protected reactor.core.publisher.Mono<Resource>
ResourceWebHandler.getResource
(ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
ResourceWebHandler.handle
(ServerWebExchange exchange) Processes a resource request.reactor.core.publisher.Mono<Resource>
AbstractResourceResolver.resolveResource
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) reactor.core.publisher.Mono<Resource>
ResourceResolver.resolveResource
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) Resolve the supplied request and request path to aResource
that exists under one of the given resource locations.reactor.core.publisher.Mono<Resource>
ResourceResolverChain.resolveResource
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations) Resolve the supplied request and request path to aResource
that exists under one of the given resource locations.protected abstract reactor.core.publisher.Mono<Resource>
AbstractResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<Resource>
CachingResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<Resource>
EncodedResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<Resource>
PathResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<Resource>
VersionResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<Resource>
WebJarsResourceResolver.resolveResourceInternal
(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain) protected reactor.core.publisher.Mono<String>
ResourceTransformerSupport.resolveUrlPath
(String resourcePath, ServerWebExchange exchange, Resource resource, ResourceTransformerChain transformerChain) A transformer can use this method when a resource being transformed contains links to other resources.protected void
ResourceWebHandler.setHeaders
(ServerWebExchange exchange, Resource resource, MediaType mediaType) Set headers on the response.protected String
ResourceTransformerSupport.toAbsolutePath
(String path, ServerWebExchange exchange) Transform the given relative request path to an absolute path, taking the path of the given request as a point of reference.reactor.core.publisher.Mono<Resource>
CachingResourceTransformer.transform
(ServerWebExchange exchange, Resource resource, ResourceTransformerChain transformerChain) reactor.core.publisher.Mono<Resource>
CssLinkResourceTransformer.transform
(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain transformerChain) reactor.core.publisher.Mono<Resource>
ResourceTransformer.transform
(ServerWebExchange exchange, Resource resource, ResourceTransformerChain transformerChain) Transform the given resource.reactor.core.publisher.Mono<Resource>
ResourceTransformerChain.transform
(ServerWebExchange exchange, Resource resource) Transform the given resource. -
Uses of ServerWebExchange in org.springframework.web.reactive.result
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<HandlerResult>
SimpleHandlerAdapter.handle
(ServerWebExchange exchange, Object handler) protected MediaType
HandlerResultHandlerSupport.selectMediaType
(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier) Select the best media type for the current request through a content negotiation algorithm.protected MediaType
HandlerResultHandlerSupport.selectMediaType
(ServerWebExchange exchange, Supplier<List<MediaType>> producibleTypesSupplier, List<MediaType> acceptableTypes) Variant ofHandlerResultHandlerSupport.selectMediaType(ServerWebExchange, Supplier)
with a given list of requested (acceptable) media types. -
Uses of ServerWebExchange in org.springframework.web.reactive.result.condition
Modifier and TypeMethodDescriptionstatic void
ProducesRequestCondition.clearMediaTypesAttribute
(ServerWebExchange exchange) Use this to clearProducesRequestCondition.MEDIA_TYPES_ATTRIBUTE
that contains the parsed, requested media types.int
CompositeRequestCondition.compareTo
(CompositeRequestCondition other, ServerWebExchange exchange) If one instance is empty, the other "wins".int
ConsumesRequestCondition.compareTo
(ConsumesRequestCondition other, ServerWebExchange exchange) Returns: 0 if the two conditions have the same number of expressions Less than 0 if "this" has more or more specific media type expressions Greater than 0 if "other" has more or more specific media type expressionsint
HeadersRequestCondition.compareTo
(HeadersRequestCondition other, ServerWebExchange exchange) Compare to another condition based on header expressions.int
ParamsRequestCondition.compareTo
(ParamsRequestCondition other, ServerWebExchange exchange) Compare to another condition based on parameter expressions.int
PatternsRequestCondition.compareTo
(PatternsRequestCondition other, ServerWebExchange exchange) Compare the two conditions based on the URL patterns they contain.int
ProducesRequestCondition.compareTo
(ProducesRequestCondition other, ServerWebExchange exchange) Compares this and another "produces" condition as follows: Sort 'Accept' header media types by quality value viaMimeTypeUtils.sortBySpecificity(List)
and iterate the list.int
RequestCondition.compareTo
(T other, ServerWebExchange exchange) Compare this condition to another condition in the context of a specific request.int
RequestConditionHolder.compareTo
(RequestConditionHolder other, ServerWebExchange exchange) Compare the request conditions held by the two RequestConditionHolder instances after making sure the conditions are of the same type.int
RequestMethodsRequestCondition.compareTo
(RequestMethodsRequestCondition other, ServerWebExchange exchange) Returns: 0 if the two conditions contain the same number of HTTP request methods Less than 0 if "this" instance has an HTTP request method but "other" doesn't Greater than 0 "other" has an HTTP request method but "this" doesn'tCompositeRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Delegate to all contained conditions to match the request and return the resulting "matching" condition instances.ConsumesRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.HeadersRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Returns "this" instance if the request matches all expressions; ornull
otherwise.ParamsRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Returns "this" instance if the request matches all param expressions; ornull
otherwise.PatternsRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Checks if any of the patterns match the given request and returns an instance that is guaranteed to contain matching patterns, sorted.ProducesRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only.RequestCondition.getMatchingCondition
(ServerWebExchange exchange) Check if the condition matches the request returning a potentially new instance created for the current request.RequestConditionHolder.getMatchingCondition
(ServerWebExchange exchange) Get the matching condition for the held request condition wrap it in a new RequestConditionHolder instance.RequestMethodsRequestCondition.getMatchingCondition
(ServerWebExchange exchange) Check if any of the HTTP request methods match the given request and return an instance that contains the matching HTTP request method only. -
Uses of ServerWebExchange in org.springframework.web.reactive.result.method
Modifier and TypeMethodDescriptionint
RequestMappingInfo.compareTo
(RequestMappingInfo other, ServerWebExchange exchange) Compares "this" info (i.e.protected CorsConfiguration
AbstractHandlerMethodMapping.getCorsConfiguration
(Object handler, ServerWebExchange exchange) reactor.core.publisher.Mono<HandlerMethod>
AbstractHandlerMethodMapping.getHandlerInternal
(ServerWebExchange exchange) Look up a handler method for the given request.reactor.core.publisher.Mono<HandlerMethod>
RequestMappingInfoHandlerMapping.getHandlerInternal
(ServerWebExchange exchange) protected abstract Comparator<T>
AbstractHandlerMethodMapping.getMappingComparator
(ServerWebExchange exchange) Return a comparator for sorting matching mappings.protected Comparator<RequestMappingInfo>
RequestMappingInfoHandlerMapping.getMappingComparator
(ServerWebExchange exchange) Provide a Comparator to sort RequestMappingInfos matched to a request.RequestMappingInfo.getMatchingCondition
(ServerWebExchange exchange) Checks if all conditions in this request mapping info match the provided request and returns a potentially new request mapping info with conditions tailored to the current request.protected abstract T
AbstractHandlerMethodMapping.getMatchingMapping
(T mapping, ServerWebExchange exchange) Check if a mapping matches the current request and return a (potentially new) mapping with conditions relevant to the current request.protected RequestMappingInfo
RequestMappingInfoHandlerMapping.getMatchingMapping
(RequestMappingInfo info, ServerWebExchange exchange) Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns.protected void
AbstractHandlerMethodMapping.handleMatch
(T mapping, HandlerMethod handlerMethod, ServerWebExchange exchange) Invoked when a matching mapping is found.protected void
RequestMappingInfoHandlerMapping.handleMatch
(RequestMappingInfo info, HandlerMethod handlerMethod, ServerWebExchange exchange) Expose URI template variables, matrix variables, and producible media types in the request.protected HandlerMethod
AbstractHandlerMethodMapping.handleNoMatch
(Set<T> mappings, ServerWebExchange exchange) Invoked when no matching mapping is not found.protected HandlerMethod
RequestMappingInfoHandlerMapping.handleNoMatch
(Set<RequestMappingInfo> infos, ServerWebExchange exchange) Iterate all RequestMappingInfos once again, look if any match by URL at least and raise exceptions accordingly.reactor.core.publisher.Mono<HandlerResult>
InvocableHandlerMethod.invoke
(ServerWebExchange exchange, BindingContext bindingContext, Object... providedArgs) Invoke the method for the given exchange.SyncInvocableHandlerMethod.invokeForHandlerResult
(ServerWebExchange exchange, BindingContext bindingContext, Object... providedArgs) Invoke the method for the given exchange.protected HandlerMethod
AbstractHandlerMethodMapping.lookupHandlerMethod
(ServerWebExchange exchange) Look up the best-matching handler method for the current request.reactor.core.publisher.Mono<Object>
HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.default reactor.core.publisher.Mono<Object>
SyncHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.SyncHandlerMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter synchronously. -
Uses of ServerWebExchange in org.springframework.web.reactive.result.method.annotation
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Void>
ModelAttributeMethodArgumentResolver.bindRequestParameters
(WebExchangeDataBinder binder, ServerWebExchange exchange) Extension point to bind the request to the target object.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.createResponseEntity
(Object body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Create theResponseEntity
to use from the given body, headers, and statusCode.reactor.core.publisher.Flux<Part>
RequestPartMethodArgumentResolver.getPartValues
(MethodParameter parameter, RequestPart requestPart, boolean isRequired, ServerWebExchange exchange) ModelAttributeMethodArgumentResolver.getValuesToBind
(WebExchangeDataBinder binder, ServerWebExchange exchange) Protected method to obtain the values for data binding.reactor.core.publisher.Mono<HandlerResult>
RequestMappingHandlerAdapter.handle
(ServerWebExchange exchange, Object handler) protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleErrorResponseException
(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling of anyErrorResponseException
.final reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleException
(Exception ex, ServerWebExchange exchange) Handle all exceptions raised within Spring MVC handling of the request .protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleExceptionInternal
(Exception ex, Object body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleMethodNotAllowedException
(MethodNotAllowedException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofMethodNotAllowedException
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleMissingRequestValueException
(MissingRequestValueException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofMissingRequestValueException
.protected void
AbstractNamedValueArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, ServerWebExchange exchange) Invoked when a named value is required, butAbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange)
returnednull
and there is no default value.protected void
RequestParamMethodArgumentResolver.handleMissingValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleNotAcceptableStatusException
(NotAcceptableStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofNotAcceptableStatusException
.protected void
AbstractNamedValueArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) Invoked after a value is resolved.protected void
PathVariableMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleResponseStatusException
(ResponseStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling of anyResponseStatusException
.reactor.core.publisher.Mono<Void>
ResponseBodyResultHandler.handleResult
(ServerWebExchange exchange, HandlerResult result) reactor.core.publisher.Mono<Void>
ResponseEntityResultHandler.handleResult
(ServerWebExchange exchange, HandlerResult result) protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleServerErrorException
(ServerErrorException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofServerErrorException
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleServerWebInputException
(ServerWebInputException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofServerWebInputException
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleUnsatisfiedRequestParameterException
(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofUnsatisfiedRequestParameterException
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleUnsupportedMediaTypeStatusException
(UnsupportedMediaTypeStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofUnsupportedMediaTypeStatusException
.protected reactor.core.publisher.Mono<ResponseEntity<Object>>
ResponseEntityExceptionHandler.handleWebExchangeBindException
(WebExchangeBindException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) Customize the handling ofWebExchangeBindException
.protected reactor.core.publisher.Mono<Object>
AbstractMessageReaderArgumentResolver.readBody
(MethodParameter bodyParameter, boolean isBodyRequired, BindingContext bindingContext, ServerWebExchange exchange) Read the body from a method argument withHttpMessageReader
.protected reactor.core.publisher.Mono<Object>
AbstractMessageReaderArgumentResolver.readBody
(MethodParameter bodyParam, MethodParameter actualParam, boolean isBodyRequired, BindingContext bindingContext, ServerWebExchange exchange) Read the body from a method argument withHttpMessageReader
.reactor.core.publisher.Mono<Object>
AbstractNamedValueArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
AbstractNamedValueSyncArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ErrorsMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
HttpEntityMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
ModelAttributeMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
RequestBodyMethodArgumentResolver.resolveArgument
(MethodParameter param, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
RequestPartMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) reactor.core.publisher.Mono<Object>
WebSessionMethodArgumentResolver.resolveArgument
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) AbstractNamedValueSyncArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) MatrixVariableMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) ModelMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext context, ServerWebExchange exchange) PathVariableMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) RequestHeaderMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) RequestParamMapMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) ServerWebExchangeMethodArgumentResolver.resolveArgumentValue
(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange) SessionStatusMethodArgumentResolver.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) protected abstract reactor.core.publisher.Mono<Object>
AbstractNamedValueArgumentResolver.resolveName
(String name, MethodParameter parameter, ServerWebExchange exchange) Resolve the given parameter type and value name into an argument value.protected final reactor.core.publisher.Mono<Object>
AbstractNamedValueSyncArgumentResolver.resolveName
(String name, MethodParameter param, ServerWebExchange exchange) protected reactor.core.publisher.Mono<Object>
SessionAttributeMethodArgumentResolver.resolveName
(String name, MethodParameter parameter, ServerWebExchange exchange) protected abstract Object
AbstractNamedValueSyncArgumentResolver.resolveNamedValue
(String name, MethodParameter param, ServerWebExchange exchange) Actually resolve the value synchronously.protected Object
CookieValueMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
ExpressionValueMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
MatrixVariableMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter param, ServerWebExchange exchange) protected Object
PathVariableMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestAttributeMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestHeaderMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected Object
RequestParamMethodArgumentResolver.resolveNamedValue
(String name, MethodParameter parameter, ServerWebExchange exchange) protected reactor.core.publisher.Mono<Void>
AbstractMessageWriterResultHandler.writeBody
(Object body, MethodParameter bodyParameter, MethodParameter actualParam, ServerWebExchange exchange) Write a given body to the response withHttpMessageWriter
.protected reactor.core.publisher.Mono<Void>
AbstractMessageWriterResultHandler.writeBody
(Object body, MethodParameter bodyParameter, ServerWebExchange exchange) Write a given body to the response withHttpMessageWriter
. -
Uses of ServerWebExchange in org.springframework.web.reactive.result.view
Modifier and TypeMethodDescriptionprotected RequestContext
AbstractView.createRequestContext
(ServerWebExchange exchange, Map<String, Object> model) Create aRequestContext
to expose under the specified attribute name.protected final String
RedirectView.createTargetUrl
(Map<String, Object> model, ServerWebExchange exchange) Create the target URL and, if necessary, pre-pend the contextPath, expand URI template variables, append the current request query, and apply the configuredRequestDataValueProcessor
.RequestDataValueProcessor.getExtraHiddenFields
(ServerWebExchange exchange) Invoked after all form fields have been rendered.AbstractView.getModelAttributes
(Map<String, ?> model, ServerWebExchange exchange) Prepare the model to use for rendering.reactor.core.publisher.Mono<Void>
ViewResolutionResultHandler.handleResult
(ServerWebExchange exchange, HandlerResult result) RequestDataValueProcessor.processAction
(ServerWebExchange exchange, String action, String httpMethod) Invoked when a new form action is rendered.RequestDataValueProcessor.processFormFieldValue
(ServerWebExchange exchange, String name, String value, String type) Invoked when a form field value is rendered.RequestDataValueProcessor.processUrl
(ServerWebExchange exchange, String url) Invoked when a URL is about to be rendered or redirected to.reactor.core.publisher.Mono<Void>
AbstractView.render
(Map<String, ?> model, MediaType contentType, ServerWebExchange exchange) Prepare the model to render.reactor.core.publisher.Mono<Void>
HttpMessageWriterView.render
(Map<String, ?> model, MediaType contentType, ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
View.render
(Map<String, ?> model, MediaType contentType, ServerWebExchange exchange) Render the view based on the givenHandlerResult
.protected abstract reactor.core.publisher.Mono<Void>
AbstractView.renderInternal
(Map<String, Object> renderAttributes, MediaType contentType, ServerWebExchange exchange) Subclasses must implement this method to actually render the view.protected reactor.core.publisher.Mono<Void>
RedirectView.renderInternal
(Map<String, Object> model, MediaType contentType, ServerWebExchange exchange) Convert model to request parameters and redirect to the given URL.protected reactor.core.publisher.Mono<Void>
AbstractView.resolveAsyncAttributes
(Map<String, Object> model, ServerWebExchange exchange) Use the configuredReactiveAdapterRegistry
to adapt asynchronous attributes toMono<T>
orMono<List<T>>
and then wait to resolve them into actual values.protected reactor.core.publisher.Mono<Void>
RedirectView.sendRedirect
(String targetUrl, ServerWebExchange exchange) Send a redirect back to the HTTP client.ModifierConstructorDescriptionRequestContext
(ServerWebExchange exchange, Map<String, Object> model, MessageSource messageSource) RequestContext
(ServerWebExchange exchange, Map<String, Object> model, MessageSource messageSource, RequestDataValueProcessor dataValueProcessor) -
Uses of ServerWebExchange in org.springframework.web.reactive.result.view.freemarker
Modifier and TypeMethodDescriptionFreeMarkerView.getModelAttributes
(Map<String, ?> model, ServerWebExchange exchange) Prepare the model to use for rendering by potentially exposing aRequestContext
for use in Spring FreeMarker macros and then delegating to the inherited implementation of this method.protected freemarker.template.SimpleHash
FreeMarkerView.getTemplateModel
(Map<String, Object> model, ServerWebExchange exchange) Build a FreeMarker template model for the given model map.protected reactor.core.publisher.Mono<Void>
FreeMarkerView.renderInternal
(Map<String, Object> renderAttributes, MediaType contentType, ServerWebExchange exchange) -
Uses of ServerWebExchange in org.springframework.web.reactive.result.view.script
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Void>
ScriptTemplateView.renderInternal
(Map<String, Object> model, MediaType contentType, ServerWebExchange exchange) -
Uses of ServerWebExchange in org.springframework.web.reactive.socket.server
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
WebSocketService.handleRequest
(ServerWebExchange exchange, WebSocketHandler webSocketHandler) Handle the request with the givenWebSocketHandler
.reactor.core.publisher.Mono<Void>
RequestUpgradeStrategy.upgrade
(ServerWebExchange exchange, WebSocketHandler webSocketHandler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) Upgrade to a WebSocket session and handle it with the given handler. -
Uses of ServerWebExchange in org.springframework.web.reactive.socket.server.support
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<HandlerResult>
WebSocketHandlerAdapter.handle
(ServerWebExchange exchange, Object handler) reactor.core.publisher.Mono<Void>
HandshakeWebSocketService.handleRequest
(ServerWebExchange exchange, WebSocketHandler handler) boolean
WebSocketUpgradeHandlerPredicate.test
(Object handler, ServerWebExchange exchange) -
Uses of ServerWebExchange in org.springframework.web.reactive.socket.server.upgrade
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
JettyRequestUpgradeStrategy.upgrade
(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) reactor.core.publisher.Mono<Void>
ReactorNettyRequestUpgradeStrategy.upgrade
(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) reactor.core.publisher.Mono<Void>
TomcatRequestUpgradeStrategy.upgrade
(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) reactor.core.publisher.Mono<Void>
UndertowRequestUpgradeStrategy.upgrade
(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) -
Uses of ServerWebExchange in org.springframework.web.server
Modifier and TypeClassDescriptionclass
A convenient base class for classes that need to wrap anotherServerWebExchange
.Modifier and TypeMethodDescriptionServerWebExchange.Builder.build()
Build aServerWebExchange
decorator with the mutated properties.ServerWebExchangeDecorator.getDelegate()
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
WebFilter.filter
(ServerWebExchange exchange, WebFilterChain chain) Process the Web request and (optionally) delegate to the nextWebFilter
through the givenWebFilterChain
.reactor.core.publisher.Mono<Void>
WebFilterChain.filter
(ServerWebExchange exchange) Delegate to the nextWebFilter
in the chain.reactor.core.publisher.Mono<Void>
WebExceptionHandler.handle
(ServerWebExchange exchange, Throwable ex) Handle the given exception.reactor.core.publisher.Mono<Void>
WebHandler.handle
(ServerWebExchange exchange) Handle the web server exchange. -
Uses of ServerWebExchange in org.springframework.web.server.adapter
Modifier and TypeMethodDescriptionprotected ServerWebExchange
HttpWebHandlerAdapter.createExchange
(ServerHttpRequest request, ServerHttpResponse response) -
Uses of ServerWebExchange in org.springframework.web.server.handler
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
DefaultWebFilterChain.filter
(ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
ExceptionHandlingWebHandler.handle
(ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
FilteringWebHandler.handle
(ServerWebExchange exchange) reactor.core.publisher.Mono<Void>
ResponseStatusExceptionHandler.handle
(ServerWebExchange exchange, Throwable ex) reactor.core.publisher.Mono<Void>
WebHandlerDecorator.handle
(ServerWebExchange exchange) -
Uses of ServerWebExchange in org.springframework.web.server.i18n
Modifier and TypeMethodDescriptionAcceptHeaderLocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) FixedLocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) LocaleContextResolver.resolveLocaleContext
(ServerWebExchange exchange) Resolve the current locale context via the given exchange.void
AcceptHeaderLocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext locale) void
FixedLocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext localeContext) void
LocaleContextResolver.setLocaleContext
(ServerWebExchange exchange, LocaleContext localeContext) Set the current locale context to the given one, potentially including a locale with associated time zone information. -
Uses of ServerWebExchange in org.springframework.web.server.session
Modifier and TypeMethodDescriptionvoid
CookieWebSessionIdResolver.expireSession
(ServerWebExchange exchange) void
HeaderWebSessionIdResolver.expireSession
(ServerWebExchange exchange) void
WebSessionIdResolver.expireSession
(ServerWebExchange exchange) Instruct the client to end the current session.reactor.core.publisher.Mono<WebSession>
DefaultWebSessionManager.getSession
(ServerWebExchange exchange) reactor.core.publisher.Mono<WebSession>
WebSessionManager.getSession
(ServerWebExchange exchange) Return theWebSession
for the given exchange.CookieWebSessionIdResolver.resolveSessionIds
(ServerWebExchange exchange) HeaderWebSessionIdResolver.resolveSessionIds
(ServerWebExchange exchange) WebSessionIdResolver.resolveSessionIds
(ServerWebExchange exchange) Resolve the session IDs associated with the request.void
CookieWebSessionIdResolver.setSessionId
(ServerWebExchange exchange, String id) void
HeaderWebSessionIdResolver.setSessionId
(ServerWebExchange exchange, String id) void
WebSessionIdResolver.setSessionId
(ServerWebExchange exchange, String sessionId) Send the given session ID to the client.