public interface CosXmlResultListener
请求结果回调接口
若是请求成功,即返回http code 在[200, 300)之间,回调 onSuccess(CosXmlRequest, CosXmlResult)
若是请求失败,回调 onFail(CosXmlRequest, CosXmlClientException, CosXmlServiceException)
.
限定符和类型 | 方法和说明 |
---|---|
void |
onFail(CosXmlRequest request,
CosXmlClientException clientException,
CosXmlServiceException serviceException)
失败回调
|
void |
onSuccess(CosXmlRequest request,
CosXmlResult result)
成功回调
|
void onSuccess(CosXmlRequest request, CosXmlResult result)
request
- COS请求 CosXmlRequest
result
- COS结果 CosXmlResult
void onFail(CosXmlRequest request, @Nullable CosXmlClientException clientException, @Nullable CosXmlServiceException serviceException)
request
- COS请求 CosXmlRequest
clientException
- 客户端异常 CosXmlClientException
serviceException
- 服务端异常 CosXmlServiceException