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 common
CorsProcessor strategy. |
org.springframework.web.filter.reactive |
WebFilter implementations for use in
reactive web applications. |
org.springframework.web.reactive |
Top-level package for the
spring-webflux module that contains
DispatcherHandler , the main entry
point for WebFlux server endpoint processing including key contracts used to
map requests to handlers, invoke them, and process the result. |
org.springframework.web.reactive.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 the
org.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 of
RequestUpgradeStrategy . |
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 underlying
org.springframework.http.client.reactive reactive HTTP adapter
and HttpHandler . |
org.springframework.web.server.handler |
Provides common WebHandler implementations and a
WebHandlerDecorator . |
org.springframework.web.server.i18n |
Locale related support classes.
|
org.springframework.web.server.session |
Auxiliary interfaces and implementation classes for
WebSession support. |
Modifier and Type | Method and Description |
---|---|
ServerWebExchange |
MockServerRequest.exchange() |
Modifier and Type | Method and Description |
---|---|
MockServerRequest.Builder |
MockServerRequest.Builder.exchange(ServerWebExchange exchange) |
Modifier and Type | Class and Description |
---|---|
class |
MockServerWebExchange
Extension of
DefaultServerWebExchange for use in tests, along with
MockServerHttpRequest and MockServerHttpResponse . |
Modifier and Type | Method and 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 a
Map<String, Object> of values to use for
data binding purposes. |
reactor.core.publisher.Mono<Map<String,Object>> |
WebExchangeDataBinder.getValuesToBind(ServerWebExchange exchange)
Protected method to obtain the values for data binding.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
CorsWebFilter.filter(ServerWebExchange exchange,
WebFilterChain chain) |
CorsConfiguration |
UrlBasedCorsConfigurationSource.getCorsConfiguration(ServerWebExchange exchange) |
CorsConfiguration |
CorsConfigurationSource.getCorsConfiguration(ServerWebExchange exchange)
Return a
CorsConfiguration based on the incoming request. |
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 given
CorsConfiguration . |
boolean |
DefaultCorsProcessor.process(CorsConfiguration config,
ServerWebExchange exchange) |
Modifier and Type | Method and Description |
---|---|
static Optional<ServerWebExchange> |
ServerWebExchangeContextFilter.get(reactor.util.context.Context context)
Access the
ServerWebExchange from the Reactor Context, if available,
which is if ServerWebExchangeContextFilter is configured for use
and the give context was obtained from a request processing chain. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
HiddenHttpMethodFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Transform an HTTP POST into another method based on
methodParamName . |
reactor.core.publisher.Mono<Void> |
ForwardedHeaderFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Deprecated.
|
reactor.core.publisher.Mono<Void> |
ServerWebExchangeContextFilter.filter(ServerWebExchange exchange,
WebFilterChain chain) |
Modifier and Type | Method and Description |
---|---|
WebExchangeDataBinder |
BindingContext.createDataBinder(ServerWebExchange exchange,
Object target,
String name)
Create a
WebExchangeDataBinder to apply data binding and
validation with on the target, command object. |
WebExchangeDataBinder |
BindingContext.createDataBinder(ServerWebExchange exchange,
String name)
Create a
WebExchangeDataBinder 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.
|
Modifier and Type | Method and Description |
---|---|
List<MediaType> |
FixedContentTypeResolver.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.
|
List<MediaType> |
HeaderContentTypeResolver.resolveMediaTypes(ServerWebExchange exchange) |
Modifier and Type | Method and Description |
---|---|
ServerWebExchange |
ServerRequest.exchange()
Get the web exchange that this request is based on.
|
Modifier and Type | Method and Description |
---|---|
static ServerRequest |
ServerRequest.create(ServerWebExchange exchange,
List<HttpMessageReader<?>> messageReaders)
Create a new
ServerRequest based on the given ServerWebExchange 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 Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
ServerWebExchange |
ServerRequestWrapper.exchange() |
Modifier and Type | Method and 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) |
Modifier and Type | Method and 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) |
reactor.core.publisher.Mono<Object> |
AbstractUrlHandlerMapping.getHandlerInternal(ServerWebExchange exchange) |
protected abstract reactor.core.publisher.Mono<?> |
AbstractHandlerMapping.getHandlerInternal(ServerWebExchange exchange)
Look up a handler for the given request, returning an empty
Mono
if no specific one is found. |
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 Type | Method and 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> |
ResourceResolverChain.resolveResource(ServerWebExchange exchange,
String requestPath,
List<? extends Resource> locations)
Resolve the supplied request and request path to a
Resource that
exists under one of the given resource locations. |
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 a
Resource that
exists under one of the given resource locations. |
reactor.core.publisher.Mono<Resource> |
AbstractResourceResolver.resolveResource(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> |
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<Resource> |
PathResourceResolver.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 abstract reactor.core.publisher.Mono<Resource> |
AbstractResourceResolver.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> |
ResourceTransformerChain.transform(ServerWebExchange exchange,
Resource resource)
Transform the given resource.
|
reactor.core.publisher.Mono<Resource> |
CssLinkResourceTransformer.transform(ServerWebExchange exchange,
Resource inputResource,
ResourceTransformerChain transformerChain) |
reactor.core.publisher.Mono<Resource> |
CachingResourceTransformer.transform(ServerWebExchange exchange,
Resource resource,
ResourceTransformerChain transformerChain) |
reactor.core.publisher.Mono<Resource> |
ResourceTransformer.transform(ServerWebExchange exchange,
Resource resource,
ResourceTransformerChain transformerChain)
Transform the given resource.
|
reactor.core.publisher.Mono<Resource> |
AppCacheManifestTransformer.transform(ServerWebExchange exchange,
Resource inputResource,
ResourceTransformerChain chain)
Deprecated.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static void |
ProducesRequestCondition.clearMediaTypesAttribute(ServerWebExchange exchange)
Use this to clear
ProducesRequestCondition.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 expressions
|
int |
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 via
MediaType.sortByQualityValue(List) and iterate the list. |
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't
|
int |
RequestCondition.compareTo(T other,
ServerWebExchange exchange)
Compare this condition to another condition in the context of
a specific request.
|
RequestConditionHolder |
RequestConditionHolder.getMatchingCondition(ServerWebExchange exchange)
Get the matching condition for the held request condition wrap it in a
new RequestConditionHolder instance.
|
HeadersRequestCondition |
HeadersRequestCondition.getMatchingCondition(ServerWebExchange exchange)
Returns "this" instance if the request matches all expressions;
or
null 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.
|
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.
|
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.
|
CompositeRequestCondition |
CompositeRequestCondition.getMatchingCondition(ServerWebExchange exchange)
Delegate to all contained conditions to match the request and return the
resulting "matching" condition instances.
|
T |
RequestCondition.getMatchingCondition(ServerWebExchange exchange)
Check if the condition matches the request returning a potentially new
instance created for the current request.
|
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.
|
ParamsRequestCondition |
ParamsRequestCondition.getMatchingCondition(ServerWebExchange exchange)
Returns "this" instance if the request matches all param expressions;
or
null otherwise. |
Modifier and Type | Method and 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> |
RequestMappingInfoHandlerMapping.getHandlerInternal(ServerWebExchange exchange) |
reactor.core.publisher.Mono<HandlerMethod> |
AbstractHandlerMethodMapping.getHandlerInternal(ServerWebExchange exchange)
Look up a handler method for the given request.
|
protected Comparator<RequestMappingInfo> |
RequestMappingInfoHandlerMapping.getMappingComparator(ServerWebExchange exchange)
Provide a Comparator to sort RequestMappingInfos matched to a request.
|
protected abstract Comparator<T> |
AbstractHandlerMethodMapping.getMappingComparator(ServerWebExchange exchange)
Return a comparator for sorting matching mappings.
|
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 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 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 void |
RequestMappingInfoHandlerMapping.handleMatch(RequestMappingInfo info,
HandlerMethod handlerMethod,
ServerWebExchange exchange)
Expose URI template variables, matrix variables, and producible media types in the request.
|
protected void |
AbstractHandlerMethodMapping.handleMatch(T mapping,
HandlerMethod handlerMethod,
ServerWebExchange exchange)
Invoked when a matching mapping is 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.
|
protected HandlerMethod |
AbstractHandlerMethodMapping.handleNoMatch(Set<T> mappings,
ServerWebExchange exchange)
Invoked when no matching mapping is not found.
|
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.
|
Modifier and Type | Method and 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.Flux<Part> |
RequestPartMethodArgumentResolver.getPartValues(MethodParameter parameter,
RequestPart requestPart,
boolean isRequired,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Map<String,Object>> |
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 void |
RequestParamMethodArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected void |
AbstractNamedValueArgumentResolver.handleMissingValue(String name,
MethodParameter parameter,
ServerWebExchange exchange)
Invoked when a named value is required, but
AbstractNamedValueArgumentResolver.resolveName(String, MethodParameter, ServerWebExchange) returned
null and there is no default value. |
protected void |
PathVariableMethodArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
Model model,
ServerWebExchange exchange) |
protected void |
AbstractNamedValueArgumentResolver.handleResolvedValue(Object arg,
String name,
MethodParameter parameter,
Model model,
ServerWebExchange exchange)
Invoked after a value is resolved.
|
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 with
HttpMessageReader . |
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 with
HttpMessageReader . |
reactor.core.publisher.Mono<Object> |
WebSessionMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
AbstractNamedValueSyncArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
HttpEntityMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
PrincipalMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
ModelAttributeMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
RequestPartMethodArgumentResolver.resolveArgument(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
reactor.core.publisher.Mono<Object> |
AbstractNamedValueArgumentResolver.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> |
RequestBodyMethodArgumentResolver.resolveArgument(MethodParameter param,
BindingContext bindingContext,
ServerWebExchange exchange) |
Object |
AbstractNamedValueSyncArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
ServerWebExchangeMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
ModelMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
PathVariableMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
RequestParamMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
SessionStatusMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
Object |
RequestHeaderMapMethodArgumentResolver.resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange) |
Object |
MatrixVariableMapMethodArgumentResolver.resolveArgumentValue(MethodParameter parameter,
BindingContext bindingContext,
ServerWebExchange exchange) |
protected reactor.core.publisher.Mono<Object> |
AbstractNamedValueSyncArgumentResolver.resolveName(String name,
MethodParameter param,
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> |
SessionAttributeMethodArgumentResolver.resolveName(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
PathVariableMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected abstract Object |
AbstractNamedValueSyncArgumentResolver.resolveNamedValue(String name,
MethodParameter param,
ServerWebExchange exchange)
Actually resolve the value synchronously.
|
protected Object |
RequestParamMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
RequestHeaderMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
RequestAttributeMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
MatrixVariableMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter param,
ServerWebExchange exchange) |
protected Object |
ExpressionValueMethodArgumentResolver.resolveNamedValue(String name,
MethodParameter parameter,
ServerWebExchange exchange) |
protected Object |
CookieValueMethodArgumentResolver.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 with
HttpMessageWriter . |
protected reactor.core.publisher.Mono<Void> |
AbstractMessageWriterResultHandler.writeBody(Object body,
MethodParameter bodyParameter,
ServerWebExchange exchange)
Write a given body to the response with
HttpMessageWriter . |
Modifier and Type | Method and Description |
---|---|
protected ServerWebExchange |
RequestContext.getExchange() |
Modifier and Type | Method and Description |
---|---|
protected RequestContext |
AbstractView.createRequestContext(ServerWebExchange exchange,
Map<String,Object> model)
Create a
RequestContext 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
configured
RequestDataValueProcessor . |
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 given
HandlerResult . |
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 configured
ReactiveAdapterRegistry to adapt asynchronous
attributes to Mono<T> or Mono<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.
|
Constructor and Description |
---|
RequestContext(ServerWebExchange exchange,
Map<String,Object> model,
MessageSource messageSource) |
RequestContext(ServerWebExchange exchange,
Map<String,Object> model,
MessageSource messageSource,
RequestDataValueProcessor dataValueProcessor) |
Modifier and Type | Method and 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 a
RequestContext 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) |
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Mono<Void> |
ScriptTemplateView.renderInternal(Map<String,Object> model,
MediaType contentType,
ServerWebExchange exchange) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
WebSocketService.handleRequest(ServerWebExchange exchange,
WebSocketHandler webSocketHandler)
Handle the request with the given
WebSocketHandler . |
default reactor.core.publisher.Mono<Void> |
RequestUpgradeStrategy.upgrade(ServerWebExchange exchange,
WebSocketHandler webSocketHandler,
String subProtocol)
Deprecated.
as of 5.1 in favor of
RequestUpgradeStrategy.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.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<HandlerResult> |
WebSocketHandlerAdapter.handle(ServerWebExchange exchange,
Object handler) |
reactor.core.publisher.Mono<Void> |
HandshakeWebSocketService.handleRequest(ServerWebExchange exchange,
WebSocketHandler handler) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
UndertowRequestUpgradeStrategy.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> |
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) |
Modifier and Type | Class and Description |
---|---|
class |
ServerWebExchangeDecorator
A convenient base class for classes that need to wrap another
ServerWebExchange . |
Modifier and Type | Method and Description |
---|---|
ServerWebExchange |
ServerWebExchange.Builder.build()
Build a
ServerWebExchange decorator with the mutated properties. |
ServerWebExchange |
ServerWebExchangeDecorator.getDelegate() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
WebFilterChain.filter(ServerWebExchange exchange)
Delegate to the next
WebFilter in the chain. |
reactor.core.publisher.Mono<Void> |
WebFilter.filter(ServerWebExchange exchange,
WebFilterChain chain)
Process the Web request and (optionally) delegate to the next
WebFilter through the given WebFilterChain . |
reactor.core.publisher.Mono<Void> |
WebHandler.handle(ServerWebExchange exchange)
Handle the web server exchange.
|
reactor.core.publisher.Mono<Void> |
WebExceptionHandler.handle(ServerWebExchange exchange,
Throwable ex)
Handle the given exception.
|
Constructor and Description |
---|
ServerWebExchangeDecorator(ServerWebExchange delegate) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultServerWebExchange
Default implementation of
ServerWebExchange . |
Modifier and Type | Method and Description |
---|---|
protected ServerWebExchange |
HttpWebHandlerAdapter.createExchange(ServerHttpRequest request,
ServerHttpResponse response) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
DefaultWebFilterChain.filter(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
ExceptionHandlingWebHandler.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
WebHandlerDecorator.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
FilteringWebHandler.handle(ServerWebExchange exchange) |
reactor.core.publisher.Mono<Void> |
ResponseStatusExceptionHandler.handle(ServerWebExchange exchange,
Throwable ex) |
Modifier and Type | Method and Description |
---|---|
LocaleContext |
FixedLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) |
LocaleContext |
LocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange)
Resolve the current locale context via the given exchange.
|
LocaleContext |
AcceptHeaderLocaleContextResolver.resolveLocaleContext(ServerWebExchange exchange) |
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.
|
void |
AcceptHeaderLocaleContextResolver.setLocaleContext(ServerWebExchange exchange,
LocaleContext locale) |
Modifier and Type | Method and Description |
---|---|
void |
CookieWebSessionIdResolver.expireSession(ServerWebExchange exchange) |
void |
WebSessionIdResolver.expireSession(ServerWebExchange exchange)
Instruct the client to end the current session.
|
void |
HeaderWebSessionIdResolver.expireSession(ServerWebExchange exchange) |
reactor.core.publisher.Mono<WebSession> |
DefaultWebSessionManager.getSession(ServerWebExchange exchange) |
reactor.core.publisher.Mono<WebSession> |
WebSessionManager.getSession(ServerWebExchange exchange)
Return the
WebSession for the given exchange. |
List<String> |
CookieWebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange) |
List<String> |
WebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange)
Resolve the session id's associated with the request.
|
List<String> |
HeaderWebSessionIdResolver.resolveSessionIds(ServerWebExchange exchange) |
void |
CookieWebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String id) |
void |
WebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String sessionId)
Send the given session id to the client.
|
void |
HeaderWebSessionIdResolver.setSessionId(ServerWebExchange exchange,
String id) |