public abstract class AbstractEntityReader extends Object
| Constructor and Description |
|---|
AbstractEntityReader() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
changeBody(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.wrap.MethodWrap mWrap)
尝试将body转换为特定对象
|
protected Object |
changeEntityDo(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.wrap.ParamWrap p,
String name,
Class<?> type)
尝试将值转换为目标实体
|
protected Object |
changeValue(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.wrap.ParamWrap p,
int pi,
Class<?> pt,
org.noear.solon.core.util.LazyReference bodyRef)
尝试将值按类型转换
|
protected Object |
changeValueDo(org.noear.solon.core.handle.Context ctx,
org.noear.solon.core.wrap.ParamWrap p,
String name,
Class<?> type,
String value)
尝试将值转换为目标值
|
protected Object[] |
doRead(org.noear.solon.core.handle.Context ctx,
Object target,
org.noear.solon.core.wrap.MethodWrap mWrap)
执行读取
|
protected Object |
doReadArgument(org.noear.solon.core.handle.Context ctx,
Object target,
org.noear.solon.core.wrap.MethodWrap mWrap,
org.noear.solon.core.wrap.ParamWrap pWrap,
int pIndex,
org.noear.solon.core.util.LazyReference bodyRef)
参数分析
|
protected Object[] doRead(org.noear.solon.core.handle.Context ctx, Object target, org.noear.solon.core.wrap.MethodWrap mWrap) throws Throwable
ctx - 请求上下文target - 控制器mWrap - 函数包装器Throwableprotected Object doReadArgument(org.noear.solon.core.handle.Context ctx, Object target, org.noear.solon.core.wrap.MethodWrap mWrap, org.noear.solon.core.wrap.ParamWrap pWrap, int pIndex, org.noear.solon.core.util.LazyReference bodyRef) throws Throwable
ctx - 请求上下文target - 控制器mWrap - 函数包装器pWrap - 参数包装器pIndex - 参数序位bodyRef - 主体引用Throwableprotected Object changeBody(org.noear.solon.core.handle.Context ctx, org.noear.solon.core.wrap.MethodWrap mWrap) throws Exception
ctx - 请求上下文mWrap - 函数包装器Exceptionprotected Object changeValue(org.noear.solon.core.handle.Context ctx, org.noear.solon.core.wrap.ParamWrap p, int pi, Class<?> pt, org.noear.solon.core.util.LazyReference bodyRef) throws Throwable
ctx - 请求上下文p - 参数包装pi - 参数序位pt - 参数类型bodyRef - 主体对象Throwableprotected Object changeValueDo(org.noear.solon.core.handle.Context ctx, org.noear.solon.core.wrap.ParamWrap p, String name, Class<?> type, String value)
ctx - 请求上下文p - 参数包装name - 数据名字type - 数据类型Copyright © 2025. All rights reserved.