public class FilterDef extends Object implements InvokerFilter
| 构造器和说明 |
|---|
FilterDef(int index,
UriPatternMatcher patternMatcher,
Map<String,String> initParams,
BindInfo<? extends InvokerFilter> bindInfo,
Supplier<AppContext> appContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
销毁过滤器。
|
Object |
doInvoke(Invoker invoker,
InvokerChain chain)
指定过滤器
|
int |
getIndex() |
InvokerConfig |
getInitParams() |
UriPatternMatcher |
getMatcher() |
BindInfo<?> |
getTargetType() |
void |
init(InvokerConfig config)
初始化过滤器
|
boolean |
matchesInvoker(Invoker invoker)
Returns true if the given URI will match this binding.
|
String |
toString() |
public FilterDef(int index,
UriPatternMatcher patternMatcher,
Map<String,String> initParams,
BindInfo<? extends InvokerFilter> bindInfo,
Supplier<AppContext> appContext)
public int getIndex()
public boolean matchesInvoker(Invoker invoker)
public BindInfo<?> getTargetType()
public UriPatternMatcher getMatcher()
public InvokerConfig getInitParams()
public final void init(InvokerConfig config) throws Throwable
InvokerFilterinit 在接口中 InvokerFilterconfig - 配置信息Throwable - 初始化过程中发生异常。public Object doInvoke(Invoker invoker, InvokerChain chain) throws Throwable
InvokerFilterdoInvoke 在接口中 InvokerFilterinvoker - 当前请求信息chain - 过滤器链Throwable - 执行过滤器中发生的异常。public void destroy()
InvokerFilterdestroy 在接口中 InvokerFilterCopyright © 2020. All rights reserved.