Class CompatibleFilter

java.lang.Object
org.apache.dubbo.rpc.filter.CompatibleFilter
All Implemented Interfaces:
BaseFilter, BaseFilter.Listener, Filter

@Deprecated public class CompatibleFilter extends Object implements Filter, BaseFilter.Listener
Deprecated.
CompatibleFilter make the remote method's return value compatible to invoker's version of object. To make return object compatible it does
    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.
 
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.dubbo.rpc.BaseFilter

    BaseFilter.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(Invoker<?> invoker, Invocation invocation)
    Deprecated.
    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)
    Deprecated.
    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 invocation)
    Deprecated.
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompatibleFilter

      public CompatibleFilter()
      Deprecated.
  • Method Details

    • invoke

      public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
      Deprecated.
      Description copied from interface: BaseFilter
      Always call invoker.invoke() in the implementation to hand over the request to the next filter node.
      Specified by:
      invoke in interface BaseFilter
      Throws:
      RpcException
    • onResponse

      public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation)
      Deprecated.
      Description copied from interface: BaseFilter.Listener
      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.
      Specified by:
      onResponse in interface BaseFilter.Listener
      Parameters:
      appResponse - , the rpc call result, it can represent both normal result and exceptional result
      invoker - , context
      invocation - , context
    • onError

      public void onError(Throwable t, Invoker<?> invoker, Invocation invocation)
      Deprecated.
      Description copied from interface: BaseFilter.Listener
      This method will be called on detection of framework exceptions, for example, TimeoutException, NetworkException Exception raised in Filters, etc.
      Specified by:
      onError in interface BaseFilter.Listener
      Parameters:
      t - , framework exception
      invoker - , context
      invocation - , context