Uses of Interface
org.springframework.web.server.ServerWebExchange
Packages that use ServerWebExchange Package Description org.springframework.mock.web.reactive.function.server Mock objects for the functional web framework.org.springframework.mock.web.server Mock implementations of Spring's reactive server web API abstractions.org.springframework.web.bind.support Support classes for web data binding.org.springframework.web.cors.reactive Reactive support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.filter.reactive WebFilter
implementations for use in reactive web applications.org.springframework.web.reactive Top-level package for thespring-webflux
module that containsDispatcherHandler
, 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.accept RequestedContentTypeResolver
strategy and implementations to resolve the requested content type for a given request.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.function.server.support Classes supporting theorg.springframework.web.reactive.function.server
package.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.reactive.resource Support classes for serving static resources.org.springframework.web.reactive.result Support for various programming model styles including the invocation of different types of handlers, e.g.org.springframework.web.reactive.result.condition RequestCondition
and implementations for matching requests based on different criteria.org.springframework.web.reactive.result.method Infrastructure for handler method processing.org.springframework.web.reactive.result.method.annotation Infrastructure for annotation-based handler method processing.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.reactive.result.view.freemarker Support classes for the integration of FreeMarker as Spring web view technology.org.springframework.web.reactive.result.view.script Support classes for views based on the JSR-223 script engine abstraction (as included in Java 6+), e.g.org.springframework.web.reactive.socket.server Server support for WebSocket interactions.org.springframework.web.reactive.socket.server.support Server-side support classes for WebSocket requests.org.springframework.web.reactive.socket.server.upgrade Holds implementations ofRequestUpgradeStrategy
.org.springframework.web.server Core interfaces and classes for Spring's generic, reactive web support.org.springframework.web.server.adapter Implementations to adapt to the underlyingorg.springframework.http.client.reactive
reactive HTTP adapter andHttpHandler
.org.springframework.web.server.handler Provides common WebHandler implementations and aWebHandlerDecorator
.org.springframework.web.server.i18n Locale related support classes.org.springframework.web.server.session Auxiliary interfaces and implementation classes forWebSession
support.Uses of ServerWebExchange in org.springframework.mock.web.reactive.function.server
Methods in org.springframework.mock.web.reactive.function.server that return ServerWebExchange Modifier and Type Method Description ServerWebExchange
MockServerRequest. exchange()
Methods in org.springframework.mock.web.reactive.function.server with parameters of type ServerWebExchange Modifier and Type Method Description MockServerRequest.Builder
MockServerRequest.Builder. exchange(ServerWebExchange exchange)
Uses of ServerWebExchange in org.springframework.mock.web.server
Classes in org.springframework.mock.web.server that implement ServerWebExchange Modifier and Type Class Description class
MockServerWebExchange
Extension ofDefaultServerWebExchange
for use in tests, along withMockServerHttpRequest
andMockServerHttpResponse
.Uses of ServerWebExchange in org.springframework.web.bind.support
Methods in org.springframework.web.bind.support with parameters of type ServerWebExchange Modifier and Type Method Description reactor.core.publisher.Mono<Void>
WebExchangeDataBinder. bind(ServerWebExchange exchange)
Bind query params, form data, and or multipart form data to the binder target.static reactor.core.publisher.Mono<Map<String,Object>>
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.protected reactor.core.publisher.Mono<Map<String,Object>>
WebExchangeDataBinder. getValuesToBind(ServerWebExchange exchange)
Protected method to obtain the values for data binding.Uses of ServerWebExchange in org.springframework.web.cors.reactive
Methods in org.springframework.web.cors.reactive with parameters of type ServerWebExchange Modifier and Type Method Description reactor.core.publisher.Mono<Void>
CorsWebFilter. filter(ServerWebExchange exchange, WebFilterChain chain)
CorsConfiguration
CorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
Return aCorsConfiguration
based on the incoming request.CorsConfiguration
UrlBasedCorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
protected boolean
DefaultCorsProcessor. handleInternal(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest)
Handle the given 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
Methods in org.springframework.web.filter.reactive that return types with arguments of type ServerWebExchange Modifier and Type Method Description static 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.Methods in org.springframework.web.filter.reactive with parameters of type ServerWebExchange Modifier and Type Method Description reactor.core.publisher.Mono<Void>
ForwardedHeaderFilter. filter(ServerWebExchange exchange, WebFilterChain chain)
Deprecated.reactor.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
Methods in org.springframework.web.reactive with parameters of type ServerWebExchange Modifier and Type Method Description WebExchangeDataBinder
BindingContext. createDataBinder(ServerWebExchange exchange, Object target, String name)
Create aWebExchangeDataBinder
to apply data binding and validation with on the target, command object.WebExchangeDataBinder
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>
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
Methods in org.springframework.web.reactive.accept with parameters of type ServerWebExchange Modifier and Type Method Description List<MediaType>
FixedContentTypeResolver. resolveMediaTypes(ServerWebExchange exchange)
List<MediaType>
HeaderContentTypeResolver. resolveMediaTypes(ServerWebExchange exchange)
List<MediaType>
ParameterContentTypeResolver. resolveMediaTypes(ServerWebExchange exchange)
List<MediaType>
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
Methods in org.springframework.web.reactive.function.server that return ServerWebExchange Modifier and Type Method Description ServerWebExchange
ServerRequest. exchange()
Get the web exchange that this request is based on.Methods in org.springframework.web.reactive.function.server with parameters of type ServerWebExchange Modifier and Type Method Description static 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.Method parameters in org.springframework.web.reactive.function.server with type arguments of type ServerWebExchange Modifier and Type Method Description reactor.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
Methods in org.springframework.web.reactive.function.server.support that return ServerWebExchange Modifier and Type Method Description ServerWebExchange
ServerRequestWrapper. exchange()
Methods in org.springframework.web.reactive.function.server.support with parameters of type ServerWebExchange Modifier and Type Method Description protected 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
Methods in org.springframework.web.reactive.handler with parameters of type ServerWebExchange Modifier and Type Method Description protected 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.Uses of ServerWebExchange in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource with parameters of type ServerWebExchange Modifier and Type Method Description protected String
CachingResourceResolver. computeKey(ServerWebExchange exchange, String requestPath)
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>
GzipResourceResolver. resolveResourceInternal(ServerWebExchange exchange, String requestPath, List<? extends Resource> locations, ResourceResolverChain chain)
Deprecated.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>
AppCacheManifestTransformer. transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain chain)
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
Methods in org.springframework.web.reactive.result with parameters of type ServerWebExchange Modifier and Type Method Description reactor.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.Uses of ServerWebExchange in org.springframework.web.reactive.result.condition
Methods in org.springframework.web.reactive.result.condition with parameters of type ServerWebExchange Modifier and Type Method Description static 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 viaMediaType.sortByQualityValue(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
CompositeRequestCondition. getMatchingCondition(ServerWebExchange exchange)
Delegate to all contained conditions to match the request and return the resulting "matching" condition instances.ConsumesRequestCondition
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
HeadersRequestCondition. getMatchingCondition(ServerWebExchange exchange)
Returns "this" instance if the request matches all expressions; ornull
otherwise.ParamsRequestCondition
ParamsRequestCondition. getMatchingCondition(ServerWebExchange exchange)
Returns "this" instance if the request matches all param expressions; ornull
otherwise.PatternsRequestCondition
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
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.T
RequestCondition. getMatchingCondition(ServerWebExchange exchange)
Check if the condition matches the request returning a potentially new instance created for the current request.RequestConditionHolder
RequestConditionHolder. getMatchingCondition(ServerWebExchange exchange)
Get the matching condition for the held request condition wrap it in a new RequestConditionHolder instance.RequestMethodsRequestCondition
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
Methods in org.springframework.web.reactive.result.method with parameters of type ServerWebExchange Modifier and Type Method Description int
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
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.HandlerResult
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.Object
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
Methods in org.springframework.web.reactive.result.method.annotation with parameters of type ServerWebExchange Modifier and Type Method Description protected reactor.core.publisher.Mono<Void>
ModelAttributeMethodArgumentResolver. bindRequestParameters(WebExchangeDataBinder binder, ServerWebExchange exchange)
Extension point to bind the request to the target object.reactor.core.publisher.Mono<HandlerResult>
RequestMappingHandlerAdapter. handle(ServerWebExchange exchange, Object handler)
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 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)
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<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)
Object
AbstractNamedValueSyncArgumentResolver. resolveArgumentValue(MethodParameter parameter, BindingContext context, ServerWebExchange exchange)
Object
MatrixVariableMapMethodArgumentResolver. resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)
Object
ModelMethodArgumentResolver. resolveArgumentValue(MethodParameter parameter, BindingContext context, ServerWebExchange exchange)
Object
PathVariableMapMethodArgumentResolver. resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
Object
RequestHeaderMapMethodArgumentResolver. resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
Object
RequestParamMapMethodArgumentResolver. resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
Object
ServerWebExchangeMethodArgumentResolver. resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
Object
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 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
Methods in org.springframework.web.reactive.result.view that return ServerWebExchange Modifier and Type Method Description protected ServerWebExchange
RequestContext. getExchange()
Methods in org.springframework.web.reactive.result.view with parameters of type ServerWebExchange Modifier and Type Method Description protected RequestContext
AbstractView. createRequestContext(ServerWebExchange exchange, Map<String,Object> model)
Create aRequestContext
to expose under the specified attribute name.protected 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
.Map<String,String>
RequestDataValueProcessor. getExtraHiddenFields(ServerWebExchange exchange)
Invoked after all form fields have been rendered.protected reactor.core.publisher.Mono<Map<String,Object>>
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)
String
RequestDataValueProcessor. processAction(ServerWebExchange exchange, String action, String httpMethod)
Invoked when a new form action is rendered.String
RequestDataValueProcessor. processFormFieldValue(ServerWebExchange exchange, String name, String value, String type)
Invoked when a form field value is rendered.String
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.Constructors in org.springframework.web.reactive.result.view with parameters of type ServerWebExchange Constructor Description RequestContext(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
Methods in org.springframework.web.reactive.result.view.freemarker with parameters of type ServerWebExchange Modifier and Type Method Description protected reactor.core.publisher.Mono<Map<String,Object>>
FreeMarkerView. 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
Methods in org.springframework.web.reactive.result.view.script with parameters of type ServerWebExchange Modifier and Type Method Description protected 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
Methods in org.springframework.web.reactive.socket.server with parameters of type ServerWebExchange Modifier and Type Method Description reactor.core.publisher.Mono<Void>
WebSocketService. handleRequest(ServerWebExchange exchange, WebSocketHandler webSocketHandler)
Handle the request with the givenWebSocketHandler
.default reactor.core.publisher.Mono<Void>
RequestUpgradeStrategy. upgrade(ServerWebExchange exchange, WebSocketHandler webSocketHandler, String subProtocol)
Deprecated.as of 5.1 in favor ofRequestUpgradeStrategy.upgrade(ServerWebExchange, WebSocketHandler, String, Supplier)
default 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
Methods in org.springframework.web.reactive.socket.server.support with parameters of type ServerWebExchange Modifier and Type Method Description reactor.core.publisher.Mono<HandlerResult>
WebSocketHandlerAdapter. handle(ServerWebExchange exchange, Object handler)
reactor.core.publisher.Mono<Void>
HandshakeWebSocketService. handleRequest(ServerWebExchange exchange, WebSocketHandler handler)
Uses of ServerWebExchange in org.springframework.web.reactive.socket.server.upgrade
Methods in org.springframework.web.reactive.socket.server.upgrade with parameters of type ServerWebExchange Modifier and Type Method Description reactor.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
Classes in org.springframework.web.server that implement ServerWebExchange Modifier and Type Class Description class
ServerWebExchangeDecorator
A convenient base class for classes that need to wrap anotherServerWebExchange
.Methods in org.springframework.web.server that return ServerWebExchange Modifier and Type Method Description ServerWebExchange
ServerWebExchange.Builder. build()
Build aServerWebExchange
decorator with the mutated properties.ServerWebExchange
ServerWebExchangeDecorator. getDelegate()
Methods in org.springframework.web.server with parameters of type ServerWebExchange Modifier and Type Method Description reactor.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.Constructors in org.springframework.web.server with parameters of type ServerWebExchange Constructor Description ServerWebExchangeDecorator(ServerWebExchange delegate)
Uses of ServerWebExchange in org.springframework.web.server.adapter
Classes in org.springframework.web.server.adapter that implement ServerWebExchange Modifier and Type Class Description class
DefaultServerWebExchange
Default implementation ofServerWebExchange
.Methods in org.springframework.web.server.adapter that return ServerWebExchange Modifier and Type Method Description protected ServerWebExchange
HttpWebHandlerAdapter. createExchange(ServerHttpRequest request, ServerHttpResponse response)
Uses of ServerWebExchange in org.springframework.web.server.handler
Methods in org.springframework.web.server.handler with parameters of type ServerWebExchange Modifier and Type Method Description reactor.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
Methods in org.springframework.web.server.i18n with parameters of type ServerWebExchange Modifier and Type Method Description LocaleContext
AcceptHeaderLocaleContextResolver. resolveLocaleContext(ServerWebExchange exchange)
LocaleContext
FixedLocaleContextResolver. resolveLocaleContext(ServerWebExchange exchange)
LocaleContext
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
Methods in org.springframework.web.server.session with parameters of type ServerWebExchange Modifier and Type Method Description void
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.List<String>
CookieWebSessionIdResolver. resolveSessionIds(ServerWebExchange exchange)
List<String>
HeaderWebSessionIdResolver. resolveSessionIds(ServerWebExchange exchange)
List<String>
WebSessionIdResolver. resolveSessionIds(ServerWebExchange exchange)
Resolve the session id's 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.