public interface GtInterceptor
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterCompletion(GtApiProxyFactory.ApiParam apiParam,
Map<String,Object> header,
String body,
String result)
http请求后调用,不管成功或者失败都会调用
|
void |
handleException(GtApiProxyFactory.ApiParam apiParam,
Map<String,Object> header,
String body,
ApiException e)
报错时调用此方法
|
void |
post(GtApiProxyFactory.ApiParam apiParam,
Map<String,Object> header,
String body,
String result)
http请求成功后调用此方法
|
void |
pre(GtApiProxyFactory.ApiParam apiParam,
Map<String,Object> header,
String body)
http请求前调用
|
void pre(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body)
apiParam - 请求参数header - 请求headerbody - 请求bodyvoid post(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, String result)
apiParam - 请求参数header - 请求headerbody - 请求bodyresult - 返回值void handleException(GtApiProxyFactory.ApiParam apiParam, Map<String,Object> header, String body, ApiException e)
apiParam - 请求参数header - 请求headerbody - 请求bodye - 异常信息Copyright © 2022. All rights reserved.