public class WxApiMessageConverterExtractor<T> extends Object implements WxResponseExtractor<T>
Constructor and Description |
---|
WxApiMessageConverterExtractor(Class<T> responseType,
List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
WxApiMessageConverterExtractor(Type responseType,
List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
Modifier and Type | Method and Description |
---|---|
T |
extractData(org.springframework.http.ResponseEntity<org.springframework.http.HttpInputMessage> responseEntity)
Extract data from the given
ClientHttpResponse and return it. |
public WxApiMessageConverterExtractor(Class<T> responseType, List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
public T extractData(org.springframework.http.ResponseEntity<org.springframework.http.HttpInputMessage> responseEntity) throws IOException
WxResponseExtractor
ClientHttpResponse
and return it.extractData
in interface WxResponseExtractor<T>
responseEntity
- the HTTP responseIOException
- in case of I/O errorsCopyright © 2018 Guangshan Technology, Inc.. All rights reserved.