public class CompatibleFilter extends ListenableFilter
1)If the url contain serialization key of type json or fastjson then transform
the return value to instance of Map
2)If the return value is not a instance of invoked method's return type available at
local jvm then POJO conversion.
3)If return value is other than above return value as it is.
FilterFilter.Listener| Constructor and Description |
|---|
CompatibleFilter() |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation)
Does not need to override/implement this method.
|
listenerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonResponsepublic Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
FilterRpcExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.