spring-framework / org.springframework.web.servlet.mvc.method.annotation / RequestBodyAdvice / supports

supports

abstract fun supports(methodParameter: MethodParameter, targetType: Type, converterType: Class<out HttpMessageConverter<*>>): Boolean

Invoked first to determine if this interceptor applies.

Parameters

methodParameter - the method parameter

targetType - the target type, not necessarily the same as the method parameter type, e.g. for HttpEntity<String>.

converterType - the selected converter type

Return
whether this interceptor should be invoked or not