public class ChainManager
extends java.lang.Object
构造器和说明 |
---|
ChainManager(SolonApp app) |
限定符和类型 | 方法和说明 |
---|---|
void |
addExecuteHandler(ActionExecuteHandler e)
添加Action执行器
|
void |
addExecuteHandler(ActionExecuteHandler e,
int index)
添加Action执行器
|
void |
addFilter(Filter filter,
int index)
添加过滤器
|
void |
addFilterIfAbsent(Filter filter,
int index)
添加过滤器,如果有相同类的则不加
|
void |
addInterceptor(RouterInterceptor interceptor,
int index)
添加路由拦截器
|
void |
addInterceptorIfAbsent(RouterInterceptor interceptor,
int index)
添加路由拦截器,如果有相同类的则不加
|
void |
addReturnHandler(ActionReturnHandler e) |
void |
defExecuteHandler(ActionExecuteHandler e) |
void |
doFilter(Context x,
Handler lastHandler)
执行过滤
|
void |
doIntercept(Context x,
Handler mainHandler,
Handler lastHandler)
执行路由拦截
|
ActionExecuteHandler |
getExecuteHandler(Context c,
int paramSize) |
ActionExecuteHandler |
getExecuteHandlerDefault() |
java.util.Collection<Filter> |
getFilterNodes() |
java.util.Collection<RouterInterceptor> |
getInterceptorNodes()
获取所有路由拦截器
|
ActionReturnHandler |
getReturnHandler(Context ctx,
java.lang.Class<?> returnType) |
SessionState |
getSessionState(Context ctx)
获取Session状态
|
SessionStateFactory |
getSessionStateFactory() |
void |
postArguments(Context x,
ParamWrap[] args,
java.lang.Object[] vals)
提交参数(action / invoke 执行前调用)
|
java.lang.Object |
postResult(Context x,
java.lang.Object result)
提交结果(action / render 执行前调用)
|
void |
refreshSessionState(Context c)
刷新Session状态
|
void |
removeExecuteHandler(java.lang.Class<?> clz)
移除Action执行器
|
<T extends RouterInterceptor> |
removeInterceptor(java.lang.Class<T> clz)
移除路由拦截器
|
void |
setSessionStateFactory(SessionStateFactory ssf)
设置Session状态管理器
|
public ChainManager(SolonApp app)
public java.util.Collection<Filter> getFilterNodes()
public void addFilter(Filter filter, int index)
public void addFilterIfAbsent(Filter filter, int index)
public void doFilter(Context x, Handler lastHandler) throws java.lang.Throwable
java.lang.Throwable
public java.util.Collection<RouterInterceptor> getInterceptorNodes()
public void addInterceptor(RouterInterceptor interceptor, int index)
public void addInterceptorIfAbsent(RouterInterceptor interceptor, int index)
public <T extends RouterInterceptor> void removeInterceptor(java.lang.Class<T> clz)
public void doIntercept(Context x, Handler mainHandler, Handler lastHandler) throws java.lang.Throwable
java.lang.Throwable
public void postArguments(Context x, ParamWrap[] args, java.lang.Object[] vals) throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object postResult(Context x, @Nullable java.lang.Object result) throws java.lang.Throwable
java.lang.Throwable
public void addReturnHandler(ActionReturnHandler e)
public ActionReturnHandler getReturnHandler(Context ctx, java.lang.Class<?> returnType)
public void defExecuteHandler(ActionExecuteHandler e)
public void addExecuteHandler(ActionExecuteHandler e)
public void addExecuteHandler(ActionExecuteHandler e, int index)
index
- 顺序位public void removeExecuteHandler(java.lang.Class<?> clz)
public ActionExecuteHandler getExecuteHandler(Context c, int paramSize)
public ActionExecuteHandler getExecuteHandlerDefault()
public SessionStateFactory getSessionStateFactory()
public void setSessionStateFactory(SessionStateFactory ssf)
public void refreshSessionState(Context c) throws java.io.IOException
java.io.IOException
public SessionState getSessionState(Context ctx)