public class WxApiTemplate extends Object
Constructor and Description |
---|
WxApiTemplate(org.springframework.web.client.RestTemplate restTemplate) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String url,
Map<String,?> uriVariables) |
void |
delete(String url,
Object... uriVariables) |
void |
delete(URI url) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(org.springframework.http.RequestEntity<?> requestEntity,
Class<T> responseType) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(org.springframework.http.RequestEntity<?> requestEntity,
org.springframework.core.ParameterizedTypeReference<T> responseType) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType,
Object... uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
org.springframework.core.ParameterizedTypeReference<T> responseType,
Map<String,?> uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(String url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
org.springframework.core.ParameterizedTypeReference<T> responseType,
Object... uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(URI url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
Class<T> responseType) |
<T> org.springframework.http.ResponseEntity<T> |
exchange(URI url,
org.springframework.http.HttpMethod method,
org.springframework.http.HttpEntity<?> requestEntity,
org.springframework.core.ParameterizedTypeReference<T> responseType) |
<T> T |
execute(String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
Map<String,?> uriVariables) |
<T> T |
execute(String url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor,
Object... uriVariables) |
<T> T |
execute(URI url,
org.springframework.http.HttpMethod method,
org.springframework.web.client.RequestCallback requestCallback,
org.springframework.web.client.ResponseExtractor<T> responseExtractor) |
org.springframework.web.client.ResponseErrorHandler |
getErrorHandler() |
<T> org.springframework.http.ResponseEntity<T> |
getForEntity(String url,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
getForEntity(String url,
Class<T> responseType,
Object... uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
getForEntity(URI url,
Class<T> responseType) |
<T> T |
getForObject(String url,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> T |
getForObject(String url,
Class<T> responseType,
Object... uriVariables) |
<T> T |
getForObject(URI url,
Class<T> responseType) |
List<org.springframework.http.client.ClientHttpRequestInterceptor> |
getInterceptors() |
List<org.springframework.http.converter.HttpMessageConverter<?>> |
getMessageConverters() |
org.springframework.http.client.ClientHttpRequestFactory |
getRequestFactory() |
org.springframework.web.util.UriTemplateHandler |
getUriTemplateHandler() |
org.springframework.http.HttpHeaders |
headForHeaders(String url,
Map<String,?> uriVariables) |
org.springframework.http.HttpHeaders |
headForHeaders(String url,
Object... uriVariables) |
org.springframework.http.HttpHeaders |
headForHeaders(URI url) |
Set<org.springframework.http.HttpMethod> |
optionsForAllow(String url,
Map<String,?> uriVariables) |
Set<org.springframework.http.HttpMethod> |
optionsForAllow(String url,
Object... uriVariables) |
Set<org.springframework.http.HttpMethod> |
optionsForAllow(URI url) |
<T> T |
patchForObject(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> T |
patchForObject(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
<T> T |
patchForObject(URI url,
Object request,
Class<T> responseType) |
<T> org.springframework.http.ResponseEntity<T> |
postForEntity(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
postForEntity(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
<T> org.springframework.http.ResponseEntity<T> |
postForEntity(URI url,
Object request,
Class<T> responseType) |
URI |
postForLocation(String url,
Object request,
Map<String,?> uriVariables) |
URI |
postForLocation(String url,
Object request,
Object... uriVariables) |
URI |
postForLocation(URI url,
Object request) |
<T> T |
postForObject(String url,
Object request,
Class<T> responseType,
Map<String,?> uriVariables) |
<T> T |
postForObject(String url,
Object request,
Class<T> responseType,
Object... uriVariables) |
<T> T |
postForObject(URI url,
Object request,
Class<T> responseType) |
void |
put(String url,
Object request,
Map<String,?> uriVariables) |
void |
put(String url,
Object request,
Object... uriVariables) |
void |
put(URI url,
Object request) |
void |
setDefaultUriVariables(Map<String,?> defaultUriVariables) |
void |
setErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler) |
void |
setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors) |
void |
setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters) |
void |
setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory) |
void |
setUriTemplateHandler(org.springframework.web.util.UriTemplateHandler handler) |
public WxApiTemplate(org.springframework.web.client.RestTemplate restTemplate)
public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> messageConverters)
public List<org.springframework.http.converter.HttpMessageConverter<?>> getMessageConverters()
public void setErrorHandler(org.springframework.web.client.ResponseErrorHandler errorHandler)
public org.springframework.web.client.ResponseErrorHandler getErrorHandler()
public void setUriTemplateHandler(org.springframework.web.util.UriTemplateHandler handler)
public org.springframework.web.util.UriTemplateHandler getUriTemplateHandler()
public <T> T getForObject(String url, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T getForObject(String url, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T getForObject(URI url, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> getForEntity(URI url, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public org.springframework.http.HttpHeaders headForHeaders(String url, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public org.springframework.http.HttpHeaders headForHeaders(String url, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public org.springframework.http.HttpHeaders headForHeaders(URI url) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public URI postForLocation(String url, Object request, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public URI postForLocation(String url, Object request, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public URI postForLocation(URI url, Object request) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T postForObject(String url, Object request, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T postForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T postForObject(URI url, Object request, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> postForEntity(String url, Object request, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> postForEntity(URI url, Object request, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void put(String url, Object request, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void put(String url, Object request, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void put(URI url, Object request) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T patchForObject(String url, Object request, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T patchForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T patchForObject(URI url, Object request, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void delete(String url, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void delete(String url, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void delete(URI url) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public Set<org.springframework.http.HttpMethod> optionsForAllow(String url, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public Set<org.springframework.http.HttpMethod> optionsForAllow(URI url) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(URI url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(String url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(URI url, org.springframework.http.HttpMethod method, org.springframework.http.HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(org.springframework.http.RequestEntity<?> requestEntity, Class<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> org.springframework.http.ResponseEntity<T> exchange(org.springframework.http.RequestEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T execute(String url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor, Object... uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T execute(String url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public <T> T execute(URI url, org.springframework.http.HttpMethod method, org.springframework.web.client.RequestCallback requestCallback, org.springframework.web.client.ResponseExtractor<T> responseExtractor) throws org.springframework.web.client.RestClientException
org.springframework.web.client.RestClientException
public void setInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> interceptors)
public List<org.springframework.http.client.ClientHttpRequestInterceptor> getInterceptors()
public org.springframework.http.client.ClientHttpRequestFactory getRequestFactory()
public void setRequestFactory(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.