public class RouterHandler extends 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, waitpathPatterns, postArguments, postResultpublic RouterHandler(Router router)
public void doIntercept(Context ctx, @Nullable Handler mainHandler, RouterInterceptorChain chain) throws Throwable
RouterInterceptordoIntercept 在接口中 RouterInterceptorThrowableprotected void handleTriggers(Context ctx, Endpoint endpoint) throws Throwable
ThrowableCopyright © 2024. All rights reserved.