| 程序包 | 说明 |
|---|---|
| org.noear.solon.core | |
| org.noear.solon.core.handle | |
| org.noear.solon.core.route | |
| org.noear.solon.core.util | |
| org.noear.solon.core.wrap |
| 限定符和类型 | 方法和说明 |
|---|---|
BeanWrap |
AppContext.beanMake(Class<?> clz)
::制造 bean 及对应处理
|
ParameterizedType |
VarHolder.getGenericType()
获取泛型(可能为 null)
|
Plugin |
PluginEntity.getPlugin()
获取插件
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ChainManager.doIntercept(Context x,
Handler mainHandler)
执行路由拦截
|
Object |
ChainManager.postResult(Context x,
Object result)
提交结果(action / render 执行前调用)
|
| 限定符和类型 | 字段和说明 |
|---|---|
Throwable |
Context.errors
用于在处理链中透传处理错误
|
Object |
Context.result
用于在处理链中透传处理结果
|
| 限定符和类型 | 方法和说明 |
|---|---|
Action |
Context.action()
获取当前动作
|
<T> T |
Context.attr(String name)
获取上下文特性
|
Object |
Context.controller()
获取当前控制器
|
String |
Context.cookie(String name)
获取 cookie
|
String[] |
Context.cookieValues(String name)
获取 cookie (多值)
|
UploadedFile |
Context.file(String name)
获取上传文件
|
UploadedFile[] |
Context.fileValues(String name)
获取上传文件数组
|
String |
Context.header(String name)
获取 header
|
String[] |
Context.headerValues(String name)
获取 header (多值)
|
Handler |
Context.mainHandler()
获取当前主处理器
|
Mapping |
Action.mapping()
映射
|
String |
Context.param(String name)
获取参数
|
String[] |
Context.paramValues(String name)
获取参数数组
|
<T> T |
Context.session(String name,
T def)
已过时。
2.3
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RouterInterceptorChainImpl.doIntercept(Context ctx,
Handler mainHandler) |
void |
RouterInterceptorChain.doIntercept(Context ctx,
Handler mainHandler)
拦截
|
void |
RouterInterceptor.doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain)
执行拦截
|
void |
RouterHandler.doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain) |
default Object |
RouterInterceptor.postResult(Context ctx,
Object result)
提交结果(action / render 执行前调用)
|
| 限定符和类型 | 方法和说明 |
|---|---|
T |
MultiMap.get(String key)
获取值
|
List<T> |
MultiMap.getAll(String key)
获取多值
|
T |
MultiMap.getOrDefault(String key,
T def)
获取值或默认
|
| 限定符和类型 | 字段和说明 |
|---|---|
ParameterizedType |
FieldWrap.genericType
字段泛型类型(可能为null)
|
| 限定符和类型 | 方法和说明 |
|---|---|
ParamWrap |
MethodWrap.getBodyParamWrap()
获取函数Body参数
|
ParameterizedType |
VarHolderOfParam.getGenericType()
泛型(可能为 null)
|
ParameterizedType |
VarHolderOfField.getGenericType()
泛型(可能为null)
|
Type |
VarDescriptor.getGenericType()
获取泛型
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
MethodKey.equals(Object o) |
| 构造器和说明 |
|---|
MethodKey(Method method,
Class<?> targetClass) |
Copyright © 2024. All rights reserved.