@Activate(group="provider", order=-20000) public class GenericFilter extends Object implements Filter, BaseFilter.Listener, ScopeModelAware
BaseFilter.Listener| Constructor and Description |
|---|
GenericFilter() |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation inv)
Always call invoker.invoke() in the implementation to hand over the request to the next filter node.
|
void |
onError(Throwable t,
Invoker<?> invoker,
Invocation invocation)
This method will be called on detection of framework exceptions, for example, TimeoutException, NetworkException
Exception raised in Filters, etc.
|
void |
onResponse(Result appResponse,
Invoker<?> invoker,
Invocation inv)
This method will only be called on successful remote rpc execution, that means, the service in on remote received
the request and the result (normal or exceptional) returned successfully.
|
void |
setApplicationModel(ApplicationModel applicationModel) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetFrameworkModel, setModuleModel, setScopeModelpublic void setApplicationModel(ApplicationModel applicationModel)
setApplicationModel in interface ScopeModelAwarepublic Result invoke(Invoker<?> invoker, Invocation inv) throws RpcException
BaseFilterinvoke in interface BaseFilterRpcExceptionpublic void onResponse(Result appResponse, Invoker<?> invoker, Invocation inv)
BaseFilter.ListeneronResponse in interface BaseFilter.Listenerpublic void onError(Throwable t, Invoker<?> invoker, Invocation invocation)
BaseFilter.ListeneronError in interface BaseFilter.ListenerCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.