程序包 cn.taketoday.web
类 ReturnValueHandlerDecorator
java.lang.Object
cn.taketoday.web.ReturnValueHandlerDecorator
- 所有已实现的接口:
ReturnValueHandler
Decorator Pattern
- 从以下版本开始:
- 4.0 2022/1/24 15:00
- 作者:
- Harry Yang
-
字段概要
字段从接口继承的字段 cn.taketoday.web.ReturnValueHandler
NONE_RETURN_VALUE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidhandleReturnValue(RequestContext context, Object handler, Object returnValue) Handle result of the handlerbooleansupportsHandler(Object handler) If thisReturnValueHandlersupports the target handlerbooleansupportsReturnValue(Object returnValue) If thisReturnValueHandlersupports the target handler's result
-
字段详细资料
-
delegate
-
-
构造器详细资料
-
ReturnValueHandlerDecorator
-
-
方法详细资料
-
supportsHandler
从接口复制的说明:ReturnValueHandlerIf thisReturnValueHandlersupports the target handlerThis method can test this
ReturnValueHandlersupports the target handler in application startup time , static match- 指定者:
supportsHandler在接口中ReturnValueHandler- 参数:
handler- Target HTTP handler- 返回:
- If this
ReturnValueHandlersupports the target handler
-
supportsReturnValue
从接口复制的说明:ReturnValueHandlerIf thisReturnValueHandlersupports the target handler's resultThis method can test this
ReturnValueHandlersupports the target handler in application runtime- 指定者:
supportsReturnValue在接口中ReturnValueHandler- 参数:
returnValue- Target handler's return-value or result- 返回:
- If this
ReturnValueHandlersupports the target handler's result
-
handleReturnValue
public void handleReturnValue(RequestContext context, Object handler, @Nullable Object returnValue) throws Exception 从接口复制的说明:ReturnValueHandlerHandle result of the handler- 指定者:
handleReturnValue在接口中ReturnValueHandler- 参数:
context- Current HTTP request contexthandler- Target HTTP handlerreturnValue- Handler execution result OrHandlerExceptionHandlerreturn value- 抛出:
Exception- return-value handled failed
-
getDelegate
-