Constructor and Description |
---|
XmlConverter() |
Modifier and Type | Method and Description |
---|---|
String |
decryptSourceData(AlipayRequest<?> request,
String body,
String format,
Decryptor decryptor,
String encryptType,
String charset)
获取解密后的响应内的真实内容
|
SignItem |
getSignItem(AlipayRequest<?> request,
String responseBody)
获取响应内的签名数据
|
<T extends AlipayResponse> |
toResponse(String rsp,
Class<T> clazz)
把字符串转换为响应对象。
|
public <T extends AlipayResponse> T toResponse(String rsp, Class<T> clazz) throws AlipayApiException
Converter
toResponse
in interface Converter
T
- 领域泛型rsp
- 响应字符串clazz
- 领域类型AlipayApiException
- the alipay api exceptionpublic SignItem getSignItem(AlipayRequest<?> request, String responseBody) throws AlipayApiException
Converter
getSignItem
in interface Converter
request
- the requestresponseBody
- the response bodyAlipayApiException
- the alipay api exceptionConverter.getSignItem(com.alipay.api.AlipayRequest, String)
public String decryptSourceData(AlipayRequest<?> request, String body, String format, Decryptor decryptor, String encryptType, String charset) throws AlipayApiException
Converter
decryptSourceData
in interface Converter
request
- the requestbody
- the bodyformat
- the formatdecryptor
- the decryptorencryptType
- the encrypt typecharset
- the charsetAlipayApiException
- the alipay api exceptionCopyright © 2018. All rights reserved.