public abstract class Gateway extends HandlerAide implements Handler, Render
afters, befores| 构造器和说明 |
|---|
Gateway() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(BeanWrap beanWp) |
void |
add(BeanWrap beanWp,
boolean remoting)
添加接口(适用于,从Aop工厂遍历加入;或者把rpc代理包装成bw)
|
void |
add(Class<?> beanClz)
添加接口
|
void |
add(Class<?> beanClz,
boolean remoting)
添加接口(remoting ?
|
void |
add(String path,
Handler handler)
添加二级路径处理
|
protected void |
addDo(String path,
Handler handler) |
<T extends Handler> |
after(Class<T> interceptorClz)
添加后置拦截器
|
protected boolean |
allowActionMapping()
允许 Action Mapping 申明
|
protected boolean |
allowPathMerging()
充许路径合并
|
protected boolean |
allowReadyController()
充许提前准备控制器
|
<T extends Handler> |
before(Class<T> interceptorClz)
添加前置拦截器
|
protected Handler |
findDo(Context c)
查找接口
|
void |
handle(Context c)
for XHandler
|
protected void |
handleDo(Context c,
RunnableEx runnable) |
protected abstract void |
register()
注册相关接口与拦截器
|
void |
render(Object obj,
Context c)
for XRender (用于接管 BeanWebWrap 和 XAction 的渲染)
|
after, beforeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderAndReturn@Note(value="\u6ce8\u518c\u76f8\u5173\u63a5\u53e3\u4e0e\u62e6\u622a\u5668") protected abstract void register()
@Note(value="\u5141\u8bb8 Action Mapping \u7533\u660e") protected boolean allowActionMapping()
@Note(value="\u5145\u8bb8\u63d0\u524d\u51c6\u5907\u63a7\u5236\u5668") protected boolean allowReadyController()
@Note(value="\u5145\u8bb8\u8def\u5f84\u5408\u5e76") protected boolean allowPathMerging()
public void render(Object obj, Context c) throws Throwable
protected void handleDo(Context c, RunnableEx runnable) throws Throwable
Throwable@Note(value="\u6dfb\u52a0\u524d\u7f6e\u62e6\u622a\u5668") public <T extends Handler> void before(Class<T> interceptorClz)
@Note(value="\u6dfb\u52a0\u540e\u7f6e\u62e6\u622a\u5668") public <T extends Handler> void after(Class<T> interceptorClz)
@Note(value="\u6dfb\u52a0\u63a5\u53e3") public void add(Class<?> beanClz, boolean remoting)
@Note(value="\u6dfb\u52a0\u63a5\u53e3") public void add(BeanWrap beanWp, boolean remoting)
@Note(value="\u6dfb\u52a0\u4e8c\u7ea7\u8def\u5f84\u5904\u7406") public void add(String path, Handler handler)
Copyright © 2020. All rights reserved.