public class ServerWebExchangeMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
ServerWebExchange
ServerHttpRequest
ServerHttpResponse
HttpMethod
Locale
TimeZone
ZoneId
UriBuilder or UriComponentsBuilder -- for building URL's
relative to the current request
For the WebSession see WebSessionMethodArgumentResolver
and for the Principal see PrincipalMethodArgumentResolver.
WebSessionMethodArgumentResolver,
PrincipalMethodArgumentResolverlogger| Constructor and Description |
|---|
ServerWebExchangeMethodArgumentResolver(org.springframework.core.ReactiveAdapterRegistry adapterRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolveArgumentValue(org.springframework.core.MethodParameter methodParameter,
BindingContext context,
org.springframework.web.server.ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveArgumentpublic ServerWebExchangeMethodArgumentResolver(org.springframework.core.ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
HandlerMethodArgumentResolversupportsParameter in interface HandlerMethodArgumentResolverparameter - the method parameterpublic Object resolveArgumentValue(org.springframework.core.MethodParameter methodParameter, BindingContext context, org.springframework.web.server.ServerWebExchange exchange)
SyncHandlerMethodArgumentResolverresolveArgumentValue in interface SyncHandlerMethodArgumentResolvermethodParameter - the method parametercontext - the binding context to useexchange - the current exchange