HandlerMethod that invokes the underlying method with
argument values resolved from the current HTTP request through a list of
HandlerMethodArgumentResolver.
| Modifier and Type | Class and Description |
|---|---|
| private static class | InvocableHandlerMethod.
Inner class to avoid a hard dependency on Kotlin at runtime. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ReflectionUtils. | |
| private static final Mono | |
| private static final Class | |
| private MethodValidator | |
| private static final Object | |
| private ParameterNameDiscoverer | |
| private ReactiveAdapterRegistry | |
| private final HandlerMethodArgumentResolverComposite | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | InvocableHandlerMethod(Object bean, Method method)
Create an instance from a bean instance and a method. |
| Modifier and Type | Method and Description |
|---|---|
| private Mono | getMethodArgumentValues(ServerWebExchange exchange, BindingContext bindingContext, Object... providedArgs)
|
| public ParameterNameDiscoverer | |
| public List | |
| public Mono | Returns: a Mono with aHandlerResultthe current exchange exchange, BindingContext the binding context to use bindingContext, Object... optional list of argument values to match by type providedArgs)Invoke the method for the given exchange. |
| private static boolean | |
| private boolean | |
| private void | |
| public void | setArgumentResolvers(List<? extends HandlerMethodArgumentResolver> resolvers)
Configure the argument resolvers to use for resolving method
argument values against a |
| public void | setMethodValidator(MethodValidator methodValidator)
Set the |
| public void | setParameterNameDiscoverer(ParameterNameDiscoverer nameDiscoverer)
Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name). |
| public void |
| boxImplFilter | back to summary |
|---|---|
| private static final ReflectionUtils. | |
| EMPTY_ARGS | back to summary |
|---|---|
| private static final Mono<Object[]> EMPTY_ARGS | |
| EMPTY_GROUPS | back to summary |
|---|---|
| private static final Class<?>[] EMPTY_GROUPS | |
| methodValidator | back to summary |
|---|---|
| private MethodValidator methodValidator
| |
| NO_ARG_VALUE | back to summary |
|---|---|
| private static final Object NO_ARG_VALUE | |
| parameterNameDiscoverer | back to summary |
|---|---|
| private ParameterNameDiscoverer parameterNameDiscoverer | |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private ReactiveAdapterRegistry reactiveAdapterRegistry | |
| resolvers | back to summary |
|---|---|
| private final HandlerMethodArgumentResolverComposite resolvers | |
| validationGroups | back to summary |
|---|---|
| private Class<?>[] validationGroups | |
| InvocableHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod(HandlerMethod handlerMethod) Create an instance from a | |
| InvocableHandlerMethod | back to summary |
|---|---|
| public InvocableHandlerMethod(Object bean, Method method) Create an instance from a bean instance and a method. | |
| getMethodArgumentValues | back to summary |
|---|---|
| private Mono | |
| getParameterNameDiscoverer | back to summary |
|---|---|
| public ParameterNameDiscoverer getParameterNameDiscoverer() Return the configured parameter name discoverer. | |
| getResolvers | back to summary |
|---|---|
| public List Return the configured argument resolvers. | |
| invoke | back to summary |
|---|---|
| public Mono Invoke the method for the given exchange.
| |
| isAsyncVoidReturnType | back to summary |
|---|---|
| private static boolean isAsyncVoidReturnType(MethodParameter returnType, ReactiveAdapter adapter) | |
| isResponseHandled | back to summary |
|---|---|
| private boolean isResponseHandled(Object[] args, ServerWebExchange exchange) | |
| logArgumentErrorIfNecessary | back to summary |
|---|---|
| private void logArgumentErrorIfNecessary(ServerWebExchange exchange, MethodParameter parameter, Throwable ex) | |
| setArgumentResolvers | back to summary |
|---|---|
| public void setArgumentResolvers(List<? extends HandlerMethodArgumentResolver> resolvers) Configure the argument resolvers to use for resolving method
argument values against a | |
| setMethodValidator | back to summary |
|---|---|
| public void setMethodValidator(MethodValidator methodValidator) Set the
| |
| setParameterNameDiscoverer | back to summary |
|---|---|
| public void setParameterNameDiscoverer(ParameterNameDiscoverer nameDiscoverer) Set the ParameterNameDiscoverer for resolving parameter names when needed (e.g. default request attribute name). Default is a | |
| setReactiveAdapterRegistry | back to summary |
|---|---|
| public void setReactiveAdapterRegistry(ReactiveAdapterRegistry registry) Configure a reactive adapter registry. This is needed for cases where the response is fully handled within the controller in combination with an async void return value. By default this is a | |
| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Object | invokeFunction(Method method, Object target, Object[] args, boolean isSuspendingFunction, ServerWebExchange exchange)
|
| COROUTINE_CONTEXT_ATTRIBUTE | back to summary |
|---|---|
| private static final String COROUTINE_CONTEXT_ATTRIBUTE | |
| KotlinDelegate | back to summary |
|---|---|
| private KotlinDelegate() | |
| invokeFunction | back to summary |
|---|---|
public static Object invokeFunction(Method method, Object target, Object[] args, boolean isSuspendingFunction, ServerWebExchange exchange) throws InvocationTargetException, IllegalAccessException
| |