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

afterBodyRead

abstract fun afterBodyRead(body: Any, inputMessage: HttpInputMessage, parameter: MethodParameter, targetType: Type, converterType: Class<out HttpMessageConverter<*>>): Any

Invoked third (and last) after the request body is converted to an Object.

Parameters

body - set to the converter Object before the first advice is called

inputMessage - the request

parameter - the target method parameter

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

converterType - the converter used to deserialize the body

Return
the same body or a new instance