public class ActionExecuteHandlerDefault extends Object implements ActionExecuteHandler
Action#callDo(Context, Object, MethodWrap)| 构造器和说明 |
|---|
ActionExecuteHandlerDefault() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Object> |
buildArgs(Context ctx,
Object target,
MethodWrap mWrap)
构建执行参数
|
protected Object |
changeBody(Context ctx,
MethodWrap mWrap)
尝试将body转换为特定对象
|
protected Object |
changeEntityDo(Context ctx,
ParamWrap p,
String name,
Class<?> type)
尝试将值转换为目标实体
|
protected Object |
changeValue(Context ctx,
ParamWrap p,
int pi,
Class<?> pt,
Object bodyObj)
尝试将值按类型转换
|
protected Object |
changeValueDo(Context ctx,
ParamWrap p,
String name,
Class<?> type,
String value)
尝试将值转换为目标值
|
Object |
executeHandle(Context ctx,
Object target,
MethodWrap mWrap)
执行
|
boolean |
matched(Context ctx,
String mime)
是否匹配
|
Object[] |
resolveArguments(Context ctx,
Object target,
MethodWrap mWrap)
执行
|
public boolean matched(Context ctx, String mime)
matched 在接口中 ActionExecuteHandlerctx - 请求上下文mime - 内容类型public Object executeHandle(Context ctx, Object target, MethodWrap mWrap) throws Throwable
executeHandle 在接口中 ActionExecuteHandlerctx - 请求上下文target - 控制器mWrap - 函数包装器Throwablepublic Object[] resolveArguments(Context ctx, Object target, MethodWrap mWrap) throws Throwable
resolveArguments 在接口中 ActionExecuteHandlerctx - 请求上下文target - 控制器mWrap - 函数包装器Throwableprotected List<Object> buildArgs(Context ctx, Object target, MethodWrap mWrap) throws Exception
ctx - 请求上下文target - 控制器mWrap - 函数包装器Exceptionprotected Object changeBody(Context ctx, MethodWrap mWrap) throws Exception
ctx - 请求上下文mWrap - 函数包装器Exceptionprotected Object changeValue(Context ctx, ParamWrap p, int pi, Class<?> pt, Object bodyObj) throws Exception
ctx - 请求上下文p - 参数包装pi - 参数序位pt - 参数类型bodyObj - 主体对象Exceptionprotected Object changeValueDo(Context ctx, ParamWrap p, String name, Class<?> type, String value)
ctx - 请求上下文p - 参数包装name - 数据名字type - 数据类型Copyright © 2024. All rights reserved.