public class RouterInterceptorLimiter extends java.lang.Object implements RouterInterceptor
| 构造器和说明 |
|---|
RouterInterceptorLimiter(RouterInterceptor interceptor,
PathRule rule) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain)
执行拦截
|
RouterInterceptor |
getInterceptor()
获取拦截器
|
protected boolean |
isMatched(Context ctx)
是否匹配
|
PathRule |
pathPatterns()
路径匹配模式
|
void |
postArguments(Context ctx,
ParamWrap[] args,
java.lang.Object[] vals)
提交参数(MethodWrap::invokeByAspect 执行前调用)
|
java.lang.Object |
postResult(Context ctx,
java.lang.Object result)
提交结果(action / render 执行前调用)
|
protected final PathRule rule
public RouterInterceptorLimiter(RouterInterceptor interceptor, PathRule rule)
protected boolean isMatched(Context ctx)
public RouterInterceptor getInterceptor()
public PathRule pathPatterns()
pathPatterns 在接口中 RouterInterceptorpublic void doIntercept(Context ctx, Handler mainHandler, RouterInterceptorChain chain) throws java.lang.Throwable
RouterInterceptordoIntercept 在接口中 RouterInterceptorjava.lang.Throwablepublic void postArguments(Context ctx, ParamWrap[] args, java.lang.Object[] vals) throws java.lang.Throwable
RouterInterceptorpostArguments 在接口中 RouterInterceptorjava.lang.Throwablepublic java.lang.Object postResult(Context ctx, java.lang.Object result) throws java.lang.Throwable
RouterInterceptorpostResult 在接口中 RouterInterceptorjava.lang.Throwable