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
,
PrincipalMethodArgumentResolver
logger
Constructor and Description |
---|
ServerWebExchangeMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgumentValue(MethodParameter methodParameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter synchronously.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
resolveArgument
public ServerWebExchangeMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
supportsParameter
in interface HandlerMethodArgumentResolver
parameter
- the method parameterpublic Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
SyncHandlerMethodArgumentResolver
resolveArgumentValue
in interface SyncHandlerMethodArgumentResolver
methodParameter
- the method parametercontext
- the binding context to useexchange
- the current exchange