接口 HandlerMethodReturnValueHandler
- 所有超级接口:
ReturnValueHandler
- 所有已知实现类:
AsyncTaskMethodReturnValueHandler,CallableMethodReturnValueHandler,DeferredResultReturnValueHandler,HttpEntityMethodProcessor,HttpHeadersReturnValueHandler,HttpStatusReturnValueHandler,MapMethodProcessor,ModelAttributeMethodProcessor,ObjectHandlerMethodReturnValueHandler,RenderedImageReturnValueHandler,RequestResponseBodyMethodProcessor,StreamingResponseBodyReturnValueHandler,VoidReturnValueHandler
just for HandlerMethod return-value handling
- 作者:
- TODAY 2019-12-13 13:52
-
字段概要
从接口继承的字段 cn.taketoday.web.ReturnValueHandler
NONE_RETURN_VALUE -
方法概要
修饰符和类型方法说明default voidhandleHandlerMethodReturnValue(RequestContext context, HandlerMethod handler, Object returnValue) Handle result of the handlerdefault voidhandleReturnValue(RequestContext context, Object handler, Object returnValue) Handle result of the handlerdefault booleansupportsHandler(Object handler) If thisReturnValueHandlersupports the target handlerdefault booleansupportsHandlerMethod(HandlerMethod handler) Whether the given method is supported by this handler.从接口继承的方法 cn.taketoday.web.ReturnValueHandler
supportsReturnValue
-
方法详细资料
-
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
-
supportsHandlerMethod
Whether the given method is supported by this handler.- 返回:
trueif this handler supports the supplied return type;falseotherwise- 另请参阅:
-
handleReturnValue
default void handleReturnValue(RequestContext context, @Nullable Object handler, @Nullable Object returnValue) throws Exception Handle result of the handler- 指定者:
handleReturnValue在接口中ReturnValueHandler- 参数:
context- Current HTTP request contexthandler- handler may be HandlerMethodreturnValue- Handler execution result OrHandlerExceptionHandlerreturn value- 抛出:
Exception- return-value handled failed
-
handleHandlerMethodReturnValue
default void handleHandlerMethodReturnValue(RequestContext context, HandlerMethod handler, @Nullable Object returnValue) throws Exception Handle result of the handler- 参数:
context- Current HTTP request contexthandler- HandlerMethodreturnValue- Handler execution result OrHandlerExceptionHandlerreturn value- 抛出:
Exception- return-value handled failed
-