| 程序包 | 说明 |
|---|---|
| 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 x,
FilterChain chain) |
protected boolean |
SolonApp.doStatus(Context x) |
void |
SolonApp.tryHandle(Context x)
统一代理入口(异常时,自动500处理)
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ChainManager.doFilter(Context x)
执行过滤
|
void |
ChainManager.doIntercept(Context x,
Handler mainHandler)
执行路由拦截
|
ActionExecuteHandler |
ChainManager.getExecuteHandler(Context c,
int paramSize) |
static SessionState |
ChainManager.getSessionState(Context ctx)
获取Session状态管理器
|
Object |
ChainManager.postResult(Context x,
Object result)
提交结果(action / render 执行前调用)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ContextEmpty
通用上下文,空对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Context |
ContextEmpty.create() |
static Context |
ContextUtil.current()
获取当前线程的上下文
|
static Context |
Context.current()
获取当前线程的上下文
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Object> |
ActionExecuteHandlerDefault.buildArgs(Context ctx,
MethodWrap mWrap)
构建执行参数
|
protected Object |
ActionExecuteHandlerDefault.changeBody(Context ctx,
MethodWrap mWrap)
尝试将body转换为特定对象
|
protected Object |
ActionExecuteHandlerDefault.changeEntityDo(Context ctx,
ParamWrap p,
String name,
Class<?> type)
尝试将值转换为目标实体
|
protected Object |
ActionExecuteHandlerDefault.changeValue(Context ctx,
ParamWrap p,
int pi,
Class<?> pt,
Object bodyObj)
尝试将值按类型转换
|
protected Object |
ActionExecuteHandlerDefault.changeValueDo(Context ctx,
ParamWrap p,
String name,
Class<?> type,
String value)
尝试将值转换为目标值
|
SessionState |
SessionStateFactory.create(Context ctx)
创建会话状态
|
static void |
ContextUtil.currentSet(Context context)
设置当前线程的上下文
|
void |
FilterChainImpl.doFilter(Context ctx) |
void |
FilterChain.doFilter(Context ctx)
过滤
|
void |
Filter.doFilter(Context ctx,
FilterChain chain)
过滤
|
void |
ContextPathFilter.doFilter(Context ctx,
FilterChain chain) |
protected void |
Gateway.doFilter(Context c,
FilterChain chain) |
protected Object |
Action.executeDo(Context c,
Object obj) |
Object |
ActionExecuteHandler.executeHandle(Context ctx,
Object obj,
MethodWrap mWrap)
执行
|
Object |
ActionExecuteHandlerDefault.executeHandle(Context ctx,
Object obj,
MethodWrap mWrap)
执行
|
protected Handler |
Gateway.find(Context c)
查找接口
|
protected Handler |
Gateway.findDo(Context c,
String path) |
protected Handler |
Gateway.getDo(Context c,
String path)
获取接口
|
void |
Action.handle(Context x) |
void |
HandlerPipeline.handle(Context ctx) |
void |
Gateway.handle(Context c)
for Handler
|
void |
MethodHandler.handle(Context c)
处理
|
void |
Handler.handle(Context ctx) |
void |
Action.invoke(Context c,
Object obj)
调用
|
protected void |
Action.invoke0(Context c,
Object obj)
执行内部调用
|
boolean |
ActionExecuteHandler.matched(Context ctx,
String ct)
是否匹配
|
boolean |
ActionExecuteHandlerDefault.matched(Context ctx,
String ct)
是否匹配
|
void |
ContextAsyncListener.onComplete(Context ctx) |
void |
ContextAsyncListener.onError(Context ctx,
Throwable e) |
void |
ContextAsyncListener.onStart(Context ctx) |
void |
ContextAsyncListener.onTimeout(Context ctx) |
void |
Render.render(Object data,
Context ctx)
渲染
|
void |
Action.render(Object obj,
Context c) |
void |
Gateway.render(Object obj,
Context c)
for Render (用于接管 BeanWebWrap 和 Action 的渲染)
|
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 obj,
Context c)
执行渲染(便于重写)
|
void |
ActionReturnHandler.returnHandle(Context ctx,
Action action,
Object returnValue)
返回处理
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RouterInterceptorChainImpl.doIntercept(Context ctx,
Handler mainHandler) |
void |
RouterInterceptorChain.doIntercept(Context ctx,
Handler mainHandler)
拦截
|
void |
RouterInterceptor.doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain)
执行拦截
|
void |
RouterInterceptorLimiter.doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain) |
void |
RouterHandler.doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain) |
void |
RouterHandler.handle(Context x) |
protected boolean |
RouterHandler.handleMain(Handler h,
Context ctx)
唯一处理(用于主处理)
|
protected void |
RouterHandler.handleMultiple(Context ctx,
Endpoint endpoint)
多项目处理(用于拦截器)
|
protected boolean |
RouterInterceptorLimiter.isMatched(Context ctx)
是否匹配
|
List<Handler> |
RouterDefault.matchAll(Context ctx,
Endpoint endpoint)
区配多个处理(根据上下文)
|
List<Handler> |
Router.matchAll(Context ctx,
Endpoint endpoint)
区配多个处理(根据上下文)
|
default Handler |
Router.matchMain(Context ctx) |
Handler |
RouterDefault.matchOne(Context ctx,
Endpoint endpoint)
区配一个处理(根据上下文)
|
Handler |
Router.matchOne(Context ctx,
Endpoint endpoint)
区配一个处理(根据上下文)
|
default Object |
RouterInterceptor.postResult(Context ctx,
Object result)
提交结果(action / render 执行前调用)
|
Object |
RouterInterceptorLimiter.postResult(Context ctx,
Object result) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
IpUtil.getRealIp(Context ctx)
获取 Ip
|
void |
RangeUtil.outputFile(Context ctx,
DownloadedFile file,
boolean asAttachment)
输出文件
|
void |
RangeUtil.outputFile(Context ctx,
File file,
boolean asAttachment)
输出文件
|
void |
RangeUtil.outputStream(Context ctx,
InputStream stream,
long streamSize)
输出流
|
static Object |
ConvertUtil.to(VarDescriptor descriptor,
String val,
Context ctx)
转换 context 的值
|
| 限定符和类型 | 方法和说明 |
|---|---|
default String |
VarDescriptor.getValue(Context ctx)
获取参数值
|
default String[] |
VarDescriptor.getValues(Context ctx)
获取值
|
<T> T |
ClassWrap.newBy(Function<String,String> data,
Context ctx)
新建实例
|
Copyright © 2023. All rights reserved.