com.alipay.api.AlipayParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alipay-sdk Show documentation
Show all versions of alipay-sdk Show documentation
alipay-sdk project for Spring Project
The newest version!
package com.alipay.api;
/**
* 响应解释器接口。响应格式可以是JSON, XML等等。
*
* @author carver.gu
* @since 1.0, Apr 11, 2010
*/
public interface AlipayParser {
/**
* 把响应字符串解释成相应的领域对象。
*
* @param rsp 响应字符串
* @return 领域对象
* @throws AlipayApiException 支付异常
*/
public T parse(String rsp) throws AlipayApiException;
// /**
// * 获取响应类类型。
// */
public Class getResponseClass() throws AlipayApiException;
// /**
// * 获取响应内的签名数据
// *
// * @param rsp 响应字符串
// * @return
// * @throws AlipayApiException
// */
public SignItem getSignItem(AlipayRequest> request, String responseBody)
throws AlipayApiException;
// /**
// * 获取实际串:如果是加密内容则返回内容已经是解密后的实际内容了
// *
// * @param request
// * @param body
// * @param format
// * @param encryptType
// * @param encryptKey
// * @param charset
// * @return
// * @throws AlipayApiException
// */
public String encryptSourceData(AlipayRequest> request, String body, String format,
String encryptType, String encryptKey, String charset)
throws AlipayApiException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy