Package com.pig4cloud.plugin.excel.aop
Class ResponseExcelReturnValueHandler
java.lang.Object
com.pig4cloud.plugin.excel.aop.ResponseExcelReturnValueHandler
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodReturnValueHandler
public class ResponseExcelReturnValueHandler
extends Object
implements org.springframework.web.method.support.HandlerMethodReturnValueHandler
处理@ResponseExcel 返回值
- Author:
- lengleng
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleReturnValue(Object o, org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest nativeWebRequest) 处理逻辑booleansupportsReturnType(org.springframework.core.MethodParameter parameter) 只处理@ResponseExcel 声明的方法
-
Field Details
-
sheetWriteHandlerList
-
-
Constructor Details
-
ResponseExcelReturnValueHandler
public ResponseExcelReturnValueHandler()
-
-
Method Details
-
supportsReturnType
public boolean supportsReturnType(org.springframework.core.MethodParameter parameter) 只处理@ResponseExcel 声明的方法- Specified by:
supportsReturnTypein interfaceorg.springframework.web.method.support.HandlerMethodReturnValueHandler- Parameters:
parameter- 方法签名- Returns:
- 是否处理
-
handleReturnValue
public void handleReturnValue(Object o, org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest nativeWebRequest) 处理逻辑- Specified by:
handleReturnValuein interfaceorg.springframework.web.method.support.HandlerMethodReturnValueHandler- Parameters:
o- 返回参数parameter- 方法签名mavContainer- 上下文容器nativeWebRequest- 上下文
-