com.aliyun.dc.opplat.sdk.api.OpplatParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dc-opplat-sdk-java Show documentation
Show all versions of dc-opplat-sdk-java Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/**
* Alipay.com Inc. Copyright (c) 2004-2020 All Rights Reserved.
*/
package com.aliyun.dc.opplat.sdk.api;
import com.aliyun.dc.opplat.sdk.api.exception.OpplatApiException;
import com.aliyun.dc.opplat.sdk.api.request.OpplatRequest;
import com.aliyun.dc.opplat.sdk.api.response.BaseOpplatResponse;
/**
* 平台解析器
* @author changlei.qcl
* @version $Id: OpplatParser.java, v 0.1 2020年07月28日 9:10 PM changlei.qcl Exp $
*/
public interface OpplatParser {
/**
* 把响应字符串解释成相应的领域对象。
*
* @param rsp 响应字符串
* @return 领域对象
*/
T parse(String rsp) throws OpplatApiException;
/**
* 获取响应类类型。
*/
Class getResponseClass() throws OpplatApiException;
/**
* 获取响应内的签名数据
*
* @param responseBody 响应字符串
* @return
* @throws OpplatApiException
*/
SignItem getSignItem(OpplatRequest> request, String responseBody) throws OpplatApiException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy