public class ObjectJsonParser<T extends AliyunResponse> extends Object implements AliyunParser<T>
| Constructor and Description |
|---|
ObjectJsonParser(Class<T> clazz) |
ObjectJsonParser(Class<T> clazz,
boolean simplify) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getResponseClass()
获取响应类类型。
|
T |
parse(String rsp)
把响应字符串解释成相应的领域对象。
|
public T parse(String rsp) throws ApiException
AliyunParserparse in interface AliyunParser<T extends AliyunResponse>rsp - 响应字符串ApiExceptionpublic Class<T> getResponseClass()
AliyunParsergetResponseClass in interface AliyunParser<T extends AliyunResponse>Copyright © 2021. All rights reserved.