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 java.lang.Object implements org.springframework.web.method.support.HandlerMethodReturnValueHandler处理@ResponseExcel 返回值- Author:
- lengleng
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SheetWriteHandler>sheetWriteHandlerList
-
Constructor Summary
Constructors Constructor Description ResponseExcelReturnValueHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleReturnValue(java.lang.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 Detail
-
sheetWriteHandlerList
private final java.util.List<SheetWriteHandler> sheetWriteHandlerList
-
-
Method Detail
-
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(java.lang.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- 上下文
-
-