Top Description Fields Constructors Methods
org.springframework.web.reactive.result.method

public abstract Class HandlerMethodArgumentResolverSupport

extends Object
implements HandlerMethodArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
Known Direct Subclasses
org.springframework.web.reactive.result.method.annotation.ModelMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.AbstractMessageReaderArgumentResolver, org.springframework.web.reactive.result.method.annotation.AbstractNamedValueArgumentResolver, org.springframework.web.reactive.result.method.annotation.ErrorsMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.MatrixVariableMapMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.ModelAttributeMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.PathVariableMapMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.PrincipalMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.RequestHeaderMapMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.RequestParamMapMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.ServerWebExchangeMethodArgumentResolver, org.springframework.web.reactive.result.method.annotation.WebSessionMethodArgumentResolver
Imports
java.lang.annotation.Annotation, java.util.function.BiPredicate, .Predicate, org.apache.commons.logging.Log, .LogFactory, org.springframework.core.MethodParameter, .ReactiveAdapter, .ReactiveAdapterRegistry, org.springframework.util.Assert

Base class for HandlerMethodArgumentResolver implementations with access to a ReactiveAdapterRegistry and methods to check for method parameter support.
Authors
Rossen Stoyanchev, Juergen Hoeller
Since
5.0

Field Summary

Modifier and TypeField and Description
private final ReactiveAdapterRegistry
protected final Log

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private void
private IllegalStateException
protected <A extends Annotation> boolean
checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A, Class<?>> typePredicate)

Evaluate the Predicate on the method parameter type if it has the given annotation, nesting within java.util.Optional if necessary, but raise an IllegalStateException if the same matches the generic type within a reactive type wrapper.

protected boolean
checkParameterType(MethodParameter parameter, Predicate<Class<?>> predicate)

Evaluate the Predicate on the method parameter type or on the generic type within a reactive type wrapper.

protected boolean
checkParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate)

Evaluate the Predicate on the method parameter type but raise an IllegalStateException if the same matches the generic type within a reactive type wrapper.

public ReactiveAdapterRegistry
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

adapterRegistryback to summary
private final ReactiveAdapterRegistry adapterRegistry
loggerback to summary
protected final Log logger

Constructor Detail

HandlerMethodArgumentResolverSupportback to summary
protected HandlerMethodArgumentResolverSupport(ReactiveAdapterRegistry adapterRegistry)

Method Detail

assertHasValuesback to summary
private void assertHasValues(ReactiveAdapter adapter, MethodParameter param)
buildReactiveWrapperExceptionback to summary
private IllegalStateException buildReactiveWrapperException(MethodParameter parameter)
checkAnnotatedParamNoReactiveWrapperback to summary
protected <A extends Annotation> boolean checkAnnotatedParamNoReactiveWrapper(MethodParameter parameter, Class<A> annotationType, BiPredicate<A, Class<?>> typePredicate)

Evaluate the Predicate on the method parameter type if it has the given annotation, nesting within java.util.Optional if necessary, but raise an IllegalStateException if the same matches the generic type within a reactive type wrapper.

checkParameterTypeback to summary
protected boolean checkParameterType(MethodParameter parameter, Predicate<Class<?>> predicate)

Evaluate the Predicate on the method parameter type or on the generic type within a reactive type wrapper.

checkParameterTypeNoReactiveWrapperback to summary
protected boolean checkParameterTypeNoReactiveWrapper(MethodParameter parameter, Predicate<Class<?>> predicate)

Evaluate the Predicate on the method parameter type but raise an IllegalStateException if the same matches the generic type within a reactive type wrapper.

getAdapterRegistryback to summary
public ReactiveAdapterRegistry getAdapterRegistry()

Return the configured ReactiveAdapterRegistry.