RequestBodyAdvice with default method implementations.
Subclasses are required to implement supports to return true
depending on when the advice applies.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | afterBodyRead(Object
set to the converter Object before the first advice is called body, HttpInputMessage the request inputMessage, MethodParameter the target method parameter parameter, Type the target type, not necessarily the same as the method
parameter type, e.g. for targetType, Class<? extends HttpMessageConverter<?>> HttpEntity<String>.the converter used to deserialize the body converterType)Implements org. The default implementation returns the body that was passed in. |
| public HttpInputMessage | beforeBodyRead(HttpInputMessage
the request inputMessage, MethodParameter the target method parameter parameter, Type the target type, not necessarily the same as the method
parameter type, e.g. for targetType, Class<? extends HttpMessageConverter<?>> HttpEntity<String>.the converter used to deserialize the body converterType)Implements org. The default implementation returns the InputMessage that was passed in. |
| public Object | handleEmptyBody(Object
usually set to body, HttpInputMessage null before the first advice is calledthe request inputMessage, MethodParameter the method parameter parameter, Type the target type, not necessarily the same as the method
parameter type, e.g. for targetType, Class<? extends HttpMessageConverter<?>> HttpEntity<String>.the selected converter type converterType)Implements org. The default implementation returns the body that was passed in. |
| RequestBodyAdviceAdapter | back to summary |
|---|---|
| public RequestBodyAdviceAdapter() | |