@Extension(value="referenceContext", order=-19500) @AutoActive(consumerSide=true) public class RpcReferenceContextFilter extends Filter
| 构造器和说明 |
|---|
RpcReferenceContextFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
SofaResponse |
invoke(FilterInvoker invoker,
SofaRequest request)
Do filtering
doBeforeInvoke(); // the code before invoke, even new dummy response for return (skip all next invoke). |
boolean |
needToLoad(FilterInvoker invoker)
是否自动加载
|
onAsyncResponsepublic boolean needToLoad(FilterInvoker invoker)
needToLoad 在类中 Filterinvoker - 调用器public SofaResponse invoke(FilterInvoker invoker, SofaRequest request) throws SofaRpcException
Filter
doBeforeInvoke(); // the code before invoke, even new dummy response for return (skip all next invoke).
SofaResponse response = invoker.invoke(request); // do next invoke(call next filter, call remote, call implements).
doAfterInvoke(); // the code after invoke
invoke 在类中 Filterinvoker - Invokerrequest - RequestSofaRpcException - Occur rpc exceptionCopyright © 2008–2018 The Ant Financial. All rights reserved.