public class DefaultBeforeResponseAdvice extends Object implements BeforeResponseAdvice
| 限定符和类型 | 字段和说明 |
|---|---|
protected static List<?> |
EMPTY_ARRAY |
protected static Map<String,Object> |
EMPTY_OBJ |
protected static cn.easyutil.veteran.core.entity.CommonPage |
EMPTY_PAGE |
| 构造器和说明 |
|---|
DefaultBeforeResponseAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
beforeBodyWrite(Object body,
Method method)
所有处理完成后返回客户端前的处理
|
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class converterType)
是否处理当前请求
|
Object |
toPackage(Object outObj,
Method method)
包装返回数据
|
Object |
toSecret(Object outObj,
Method method)
对包装数据进行加密
|
protected static final cn.easyutil.veteran.core.entity.CommonPage EMPTY_PAGE
protected static final List<?> EMPTY_ARRAY
public boolean supports(org.springframework.core.MethodParameter returnType,
Class converterType)
BeforeResponseAdvicesupports 在接口中 BeforeResponseAdvicepublic Object toPackage(Object outObj, Method method)
BeforeResponseAdvicetoPackage 在接口中 BeforeResponseAdviceoutObj - 原始返回数据method - 接口方法public Object toSecret(Object outObj, Method method)
BeforeResponseAdvicetoSecret 在接口中 BeforeResponseAdviceoutObj - 包装后的返回数据method - 接口方法public Object beforeBodyWrite(Object body, Method method)
BeforeResponseAdvicebeforeBodyWrite 在接口中 BeforeResponseAdvicebody - 将要返回的数据method - 接口方法Copyright © 2022. All rights reserved.