接口 GtInterceptor
-
- 所有已知实现类:
DefaultGtInterceptor
public interface GtInterceptorcreate by getui on 2020/9/28- 作者:
- getui
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidafterCompletion(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, String result)http请求后调用,不管成功或者失败都会调用voidhandleException(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, ApiException e)报错时调用此方法voidpost(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, String result)http请求成功后调用此方法voidpre(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body)http请求前调用
-
-
-
方法详细资料
-
pre
void pre(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body)
http请求前调用- 参数:
apiParam- 请求参数header- 请求headerbody- 请求body
-
post
void post(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, String result)
http请求成功后调用此方法- 参数:
apiParam- 请求参数header- 请求headerbody- 请求bodyresult- 返回值
-
handleException
void handleException(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, ApiException e)
报错时调用此方法- 参数:
apiParam- 请求参数header- 请求headerbody- 请求bodye- 异常信息
-
-