T - the type parameterpublic class ObjectJsonParser<T extends AlipayResponse> extends Object implements AlipayParser<T>
| Constructor and Description |
|---|
ObjectJsonParser(Class<T> clazz)
Instantiates a new Object json parser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
decryptSourceData(AlipayRequest<?> request,
String body,
String format,
Decryptor decryptor,
String encryptType,
String charset)
获取实际串:如果是加密内容则返回内容已经是解密后的实际内容了
|
Class<T> |
getResponseClass()
获取响应类类型。
|
SignItem |
getSignItem(AlipayRequest<?> request,
String responseBody)
获取响应内的签名数据
|
T |
parse(String rsp)
把响应字符串解释成相应的领域对象。
|
public T parse(String rsp) throws AlipayApiException
AlipayParserparse in interface AlipayParser<T extends AlipayResponse>rsp - 响应字符串AlipayApiException - the alipay api exceptionpublic Class<T> getResponseClass()
AlipayParsergetResponseClass in interface AlipayParser<T extends AlipayResponse>public SignItem getSignItem(AlipayRequest<?> request, String responseBody) throws AlipayApiException
AlipayParsergetSignItem in interface AlipayParser<T extends AlipayResponse>request - the requestresponseBody - the response bodyAlipayApiException - the alipay api exceptionpublic String decryptSourceData(AlipayRequest<?> request, String body, String format, Decryptor decryptor, String encryptType, String charset) throws AlipayApiException
AlipayParserdecryptSourceData in interface AlipayParser<T extends AlipayResponse>request - the requestbody - the bodyformat - the formatdecryptor - the decryptorencryptType - the encrypt typecharset - the charsetAlipayApiException - the alipay api exceptionCopyright © 2018. All rights reserved.