public class RouterInterceptorLimiter extends Object implements RouterInterceptor
| Constructor and Description |
|---|
RouterInterceptorLimiter(RouterInterceptor interceptor,
PathRule rule) |
| Modifier and Type | Method and Description |
|---|---|
void |
doIntercept(Context ctx,
Handler mainHandler,
RouterInterceptorChain chain)
执行拦截
|
RouterInterceptor |
getInterceptor()
获取拦截器
|
protected boolean |
isMatched(Context ctx)
是否匹配
|
PathRule |
pathPatterns()
路径匹配模式
|
void |
postArguments(Context ctx,
ParamWrap[] args,
Object[] vals)
提交参数(MethodWrap::invokeByAspect 执行前调用)
|
Object |
postResult(Context ctx,
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 in interface RouterInterceptorpublic void doIntercept(Context ctx, Handler mainHandler, RouterInterceptorChain chain) throws Throwable
RouterInterceptordoIntercept in interface RouterInterceptorThrowablepublic void postArguments(Context ctx, ParamWrap[] args, Object[] vals) throws Throwable
RouterInterceptorpostArguments in interface RouterInterceptorThrowablepublic Object postResult(Context ctx, Object result) throws Throwable
RouterInterceptorpostResult in interface RouterInterceptorThrowableCopyright © 2025. All rights reserved.