public class PrincipalMethodArgumentResolver extends HandlerMethodArgumentResolverSupport
Principal
.ServerWebExchangeMethodArgumentResolver
logger
Constructor and Description |
---|
PrincipalMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
public PrincipalMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
parameter
- the method parameterpublic reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, BindingContext context, ServerWebExchange exchange)
HandlerMethodArgumentResolver
parameter
- the method parametercontext
- the binding context to useexchange
- the current exchangeMono
for the argument value, possibly empty