Class RequestBodyAdviceAdapter
java.lang.Object
io.microsphere.spring.webmvc.advice.RequestBodyAdviceAdapter
- All Implemented Interfaces:
org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
- Direct Known Subclasses:
StoringRequestBodyArgumentAdvice
public abstract class RequestBodyAdviceAdapter
extends Object
implements org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
RequestBodyAdvice Adapter Class- Since:
- 1.0.0
- Author:
- Mercy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionafterBodyRead(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) org.springframework.http.HttpInputMessagebeforeBodyRead(org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) handleEmptyBody(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) booleansupports(org.springframework.core.MethodParameter methodParameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
-
Constructor Details
-
RequestBodyAdviceAdapter
public RequestBodyAdviceAdapter()
-
-
Method Details
-
supports
public boolean supports(org.springframework.core.MethodParameter methodParameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) - Specified by:
supportsin interfaceorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
-
beforeBodyRead
public org.springframework.http.HttpInputMessage beforeBodyRead(org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) throws IOException - Specified by:
beforeBodyReadin interfaceorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice- Throws:
IOException
-
afterBodyRead
public Object afterBodyRead(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) - Specified by:
afterBodyReadin interfaceorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
-
handleEmptyBody
public Object handleEmptyBody(Object body, org.springframework.http.HttpInputMessage inputMessage, org.springframework.core.MethodParameter parameter, Type targetType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType) - Specified by:
handleEmptyBodyin interfaceorg.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice
-