public class RouterHandler extends java.lang.Object implements Handler, RouterInterceptor
构造器和说明 |
---|
RouterHandler(Router router) |
限定符和类型 | 方法和说明 |
---|---|
void |
doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain)
执行拦截
|
void |
handle(Context x) |
protected boolean |
handleMain(Handler h,
Context ctx)
主处理
|
protected void |
handleTriggers(Context ctx,
Endpoint endpoint)
触发器处理(链式拦截)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pathPatterns, postResult
public RouterHandler(Router router)
public void doIntercept(Context ctx, @Nullable Handler mainHandler, RouterInterceptorChain chain) throws java.lang.Throwable
RouterInterceptor
doIntercept
在接口中 RouterInterceptor
java.lang.Throwable
protected boolean handleMain(Handler h, Context ctx) throws java.lang.Throwable
java.lang.Throwable
protected void handleTriggers(Context ctx, Endpoint endpoint) throws java.lang.Throwable
java.lang.Throwable