类 MapMethodProcessor
java.lang.Object
cn.taketoday.web.bind.resolver.MapMethodProcessor
public class MapMethodProcessor
extends Object
implements ParameterResolvingStrategy, HandlerMethodReturnValueHandler
Resolves
Map<String, Object> model method arguments and handles Map return values.
A Map return value can be interpreted in more than one ways depending
on the presence of annotations like @ModelAttribute or
@ResponseBody. this resolver returns false if the
parameter is annotated.
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.web.ReturnValueHandler
NONE_RETURN_VALUE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidhandleReturnValue(RequestContext context, Object handler, Object returnValue) Handle result of the handlerresolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Resolve parameterbooleansupportsHandlerMethod(HandlerMethod handler) Whether the given method is supported by this handler.booleansupportsParameter(ResolvableMethodParameter resolvable) Whether the given parameter is supported by this resolver.booleansupportsReturnValue(Object returnValue) If thisReturnValueHandlersupports the target handler's result从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.web.handler.result.HandlerMethodReturnValueHandler
handleHandlerMethodReturnValue, supportsHandler
-
构造器详细资料
-
MapMethodProcessor
public MapMethodProcessor()
-
-
方法详细资料
-
supportsParameter
从接口复制的说明:ParameterResolvingStrategyWhether the given parameter is supported by this resolver.static match
- 指定者:
supportsParameter在接口中ParameterResolvingStrategy
-
resolveArgument
@Nullable public Object resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) throws Throwable 从接口复制的说明:ParameterResolvingStrategyResolve parameter- 指定者:
resolveArgument在接口中ParameterResolvingStrategy- 参数:
context- Current request contextresolvable- resolvable parameter- 返回:
- method parameter instance
- 抛出:
Throwable- if anyExceptionoccurred- 另请参阅:
-
supportsHandlerMethod
从接口复制的说明:HandlerMethodReturnValueHandlerWhether the given method is supported by this handler.- 指定者:
supportsHandlerMethod在接口中HandlerMethodReturnValueHandler- 返回:
trueif this handler supports the supplied return type;falseotherwise- 另请参阅:
-
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 从接口复制的说明:HandlerMethodReturnValueHandlerHandle result of the handler- 指定者:
handleReturnValue在接口中HandlerMethodReturnValueHandler- 指定者:
handleReturnValue在接口中ReturnValueHandler- 参数:
context- Current HTTP request contexthandler- handler may be HandlerMethodreturnValue- Handler execution result OrHandlerExceptionHandlerreturn value- 抛出:
Exception- return-value handled failed
-