接口 BaseAnnotationLifeCycle<A extends Annotation,I>

所有超级接口:
Interceptor<I>, OnCanceled, OnError, OnLoadCookie, OnProgress, OnRedirection, OnRetry, OnSaveCookie, OnSuccess<I>
所有已知实现类:
BaseLogEnabledLifeCycle, BaseLogHandlerLifeCycle, BaseRequestLifeCycle

public interface BaseAnnotationLifeCycle<A extends Annotation,I> extends Interceptor<I>
从以下版本开始:
2020-08-23 23:04
作者:
gongjun[dt_flys@hotmail.com]
  • 方法详细资料

    • onProxyHandlerInitialized

      default void onProxyHandlerInitialized(InterfaceProxyHandler interfaceProxyHandler, A annotation)
      在被注解修饰的接口初始化时被调用
      参数:
      interfaceProxyHandler - 请求接口动态代理处理器
      annotation - 该生命周期类所绑定的注解
    • onError

      default void onError(ForestRuntimeException ex, ForestRequest request, ForestResponse response)
      从接口复制的说明: Interceptor
      默认回调函数: 请求失败后调用该方法

      默认为什么都不做

      指定者:
      onError 在接口中 Interceptor<A extends Annotation>
      指定者:
      onError 在接口中 OnError
      参数:
      ex - 请求失败的异常对象
      request - Forest请求对象
      response - Forest响应对象
    • onSuccess

      default void onSuccess(I data, ForestRequest request, ForestResponse response)
      从接口复制的说明: Interceptor
      默认回调函数: 请求成功后调用该方法

      默认为什么都不做

      指定者:
      onSuccess 在接口中 Interceptor<A extends Annotation>
      指定者:
      onSuccess 在接口中 OnSuccess<A extends Annotation>
      参数:
      data - 请求响应返回后经过序列化后的数据
      request - Forest请求对象
      response - Forest响应对象