@Service public class RestProxyDaoImpl extends Object implements RestProxyDao, org.springframework.beans.factory.InitializingBean
RestProxyDao implementation backed by a RestTemplate.
A default RestTemplate instance is provided, but consumers are strongly recommended to
configure their own instance and inject. However, this class will always use
RestProxyResponseErrorHandler because it's the client's responsiblity to deal with
errors.| Constructor and Description |
|---|
RestProxyDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.http.ResponseEntity<Object> |
proxyRequest(ProxyRequestContext context) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.http.ResponseEntity<Object> proxyRequest(ProxyRequestContext context)
proxyRequest in interface RestProxyDaoResponseEntity of the proxied request.Copyright © 2015. All rights reserved.