Class HandlerMethodArgumentResolverSupport
java.lang.Object
org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- All Implemented Interfaces:
- HandlerMethodArgumentResolver
- Direct Known Subclasses:
- AbstractMessageReaderArgumentResolver,- AbstractNamedValueArgumentResolver,- ErrorsMethodArgumentResolver,- MatrixVariableMapMethodArgumentResolver,- ModelAttributeMethodArgumentResolver,- ModelMethodArgumentResolver,- PathVariableMapMethodArgumentResolver,- PrincipalMethodArgumentResolver,- RequestHeaderMapMethodArgumentResolver,- RequestParamMapMethodArgumentResolver,- ServerWebExchangeMethodArgumentResolver,- WebSessionMethodArgumentResolver
public abstract class HandlerMethodArgumentResolverSupport
extends Object
implements HandlerMethodArgumentResolver
Base class for 
HandlerMethodArgumentResolver implementations with access to a
 ReactiveAdapterRegistry and methods to check for method parameter support.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedHandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected <A extends Annotation>
 booleancheckAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A, Class<?>> typePredicate) Evaluate thePredicateon the method parameter type if it has the given annotation, nesting withinOptionalif necessary, but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.protected booleancheckParameterType(MethodParameter parameter, Predicate<Class<?>> predicate) Evaluate thePredicateon the method parameter type or on the generic type within a reactive type wrapper.protected booleancheckParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate) Evaluate thePredicateon the method parameter type but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.Return the configuredReactiveAdapterRegistry.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverresolveArgument, supportsParameter
- 
Field Details- 
logger
 
- 
- 
Constructor Details- 
HandlerMethodArgumentResolverSupport
 
- 
- 
Method Details- 
getAdapterRegistryReturn the configuredReactiveAdapterRegistry.
- 
checkParameterTypeEvaluate thePredicateon the method parameter type or on the generic type within a reactive type wrapper.
- 
checkParameterTypeNoReactiveWrapperprotected boolean checkParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate) Evaluate thePredicateon the method parameter type but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.
- 
checkAnnotatedParamNoReactiveWrapperprotected <A extends Annotation> boolean checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A, Class<?>> typePredicate) Evaluate thePredicateon the method parameter type if it has the given annotation, nesting withinOptionalif necessary, but raise anIllegalStateExceptionif the same matches the generic type within a reactive type wrapper.
 
-