public final class ResponseHandler extends Object
| 构造器和说明 |
|---|
ResponseHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
convert(InputStream inputStream,
Type type) |
static <T> T |
convert(String s,
Class<T> cls) |
static <T> T |
convert(String s,
Type type) |
static <T> HttpRestResult<T> |
responseEntityExtractor(HttpClientResponse response,
Type type)
Extract response entity to
HttpRestResult. |
public static <T> T convert(InputStream inputStream, Type type) throws Exception
Exceptionpublic static <T> HttpRestResult<T> responseEntityExtractor(HttpClientResponse response, Type type) throws Exception
HttpRestResult.T - general typeresponse - responsetype - typeHttpRestResultException - exceptionCopyright © 2018–2020 Alibaba Group. All rights reserved.