| Constructor and Description |
|---|
JsonConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
decryptSourceData(AlipayRequest<?> request,
String body,
String format,
Decryptor decryptor,
String encryptType,
String charset)
获取解密后的响应内的真实内容
|
<T> T |
fromJson(Map<?,?> json,
Class<T> clazz)
把JSON格式的数据转换为对象。
|
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
ConvertertoResponse in interface ConverterT - 领域泛型rsp - 响应字符串clazz - 领域类型AlipayApiException - the alipay api exceptionpublic <T> T fromJson(Map<?,?> json, Class<T> clazz) throws AlipayApiException
T - 泛型领域对象json - JSON格式的数据clazz - 泛型领域类型AlipayApiException - the alipay api exceptionpublic SignItem getSignItem(AlipayRequest<?> request, String responseBody) throws AlipayApiException
ConvertergetSignItem in interface Converterrequest - 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
ConverterdecryptSourceData in interface Converterrequest - the requestbody - the bodyformat - the formatdecryptor - the decryptorencryptType - the encrypt typecharset - the charsetAlipayApiException - the alipay api exceptionCopyright © 2018. All rights reserved.