| 程序包 | 说明 |
|---|---|
| org.noear.solon | |
| org.noear.solon.core | |
| org.noear.solon.core.handle | |
| org.noear.solon.core.route | |
| org.noear.solon.core.util | |
| org.noear.solon.core.wrap |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
SolonApp.doFilter(Context ctx,
FilterChain chain) |
protected void |
SolonApp.doHandle(Context x)
统一代理入口
|
void |
SolonApp.tryHandle(Context x) |
| 限定符和类型 | 方法和说明 |
|---|---|
static SessionState |
Bridge.sessionState(Context ctx)
获取Session状态管理器
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ContextEmpty
通用上下文,空对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Context |
ContextEmpty.create() |
static Context |
ContextUtil.current()
获取当前线程的上下文
|
static Context |
Context.current()
获取当前线程的上下文
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Object> |
ActionExecutorDefault.buildArgs(Context ctx,
ParamWrap[] pSet)
构建执行参数
|
protected Object |
Action.callDo(Context ctx,
Object obj,
MethodWrap mWrap)
执行动作(便于重写)
|
protected Object |
ActionExecutorDefault.changeBody(Context ctx)
尝试将body转换为特定对象
|
protected Object |
ActionExecutorDefault.changeValue(Context ctx,
ParamWrap p,
int pi,
Class<?> pt,
Object bodyObj)
尝试将值按类型转换
|
SessionState |
SessionStateFactory.create(Context ctx) |
static void |
ContextUtil.currentSet(Context context)
设置当前线程的上下文
|
void |
FilterChain.doFilter(Context ctx)
过滤
|
void |
FilterChainNode.doFilter(Context ctx) |
void |
Filter.doFilter(Context ctx,
FilterChain chain)
过滤
|
protected void |
Gateway.doFilter(Context c,
FilterChain chain) |
Object |
ActionExecutorDefault.execute(Context ctx,
Object obj,
MethodWrap mWrap) |
Object |
ActionExecutor.execute(Context ctx,
Object obj,
MethodWrap mWrap)
执行
|
protected Handler |
Gateway.find(Context c)
查找接口
|
protected Handler |
Gateway.findDo(Context c,
String path) |
void |
Action.handle(Context x) |
void |
HandlerPipeline.handle(Context ctx) |
void |
Gateway.handle(Context c)
for Handler
|
void |
Handler.handle(Context context) |
protected void |
Action.handleDo(Context c,
RunnableEx runnable) |
protected void |
Gateway.handleDo(Context c,
RunnableEx runnable) |
void |
Action.invoke(Context x,
Object obj)
调用
|
protected void |
Action.invoke0(Context x,
Object obj) |
boolean |
ActionExecutorDefault.matched(Context ctx,
String ct) |
boolean |
ActionExecutor.matched(Context ctx,
String ct)
是否匹配
|
void |
Render.render(Object data,
Context ctx)
渲染
|
void |
Gateway.render(Object obj,
Context c)
for XRender (用于接管 BeanWebWrap 和 XAction 的渲染)
|
void |
RenderManager.render(Object data,
Context ctx)
渲染
|
default String |
Render.renderAndReturn(Object data,
Context ctx)
渲染并返回(默认不实现)
|
String |
RenderManager.renderAndReturn(Object data,
Context ctx)
渲染并返回
|
protected void |
Action.renderDo(Object result,
Context x)
执行渲染(便于重写)
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RouterHandler.handle(Context context) |
protected void |
RouterHandler.handleMultiple(Context context,
Endpoint endpoint)
多项目处理(用于拦截器)
|
protected boolean |
RouterHandler.handleOne(Context context,
Endpoint endpoint)
唯一处理(用于主处理)
|
List<Handler> |
Router.matchAll(Context context,
Endpoint endpoint)
区配多个目标(根据上上文)
|
Handler |
Router.matchOne(Context context,
Endpoint endpoint)
区配一个目标(根据上上文)
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
ConvertUtil.to(AnnotatedElement element,
Class<?> type,
String key,
String val,
Context ctx)
转换 context 的值
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ClassWrap.fill(Object bean,
Function<String,String> data,
Context ctx)
为实例填充数据
|
<T> T |
ClassWrap.newBy(Function<String,String> data,
Context ctx)
新建实例
|
Copyright © 2021. All rights reserved.