@Configuration public class RestTemplateConfig extends Object
RestTemplate bean for use within the SOAP Service's
Spring context. The RestTemplate is Autowired into the SOAP Service's
various service implementations through the base class BaseServiceImpl. It is
used to forward SOAP calls to external REST services.
RestTemplate is thread-safe.| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_TIMEOUT_KEY
The configuration key for the connection timeout.
|
protected org.springframework.core.env.Environment |
env |
static String |
READ_TIMEOUT_KEY
The configuration key for the read timeout.
|
| Constructor and Description |
|---|
RestTemplateConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected Long |
getConnectionTimeout()
Provides the configured connection timeout in milliseconds.
|
protected Long |
getReadTimeout()
Provides the configured read timeout in milliseconds.
|
protected org.springframework.web.client.RestTemplate |
restTemplate()
Provides the customized template used by Spring for synchronous client-side HTTP access.
|
@Autowired protected org.springframework.core.env.Environment env
public static final String CONNECTION_TIMEOUT_KEY
public static final String READ_TIMEOUT_KEY
@Bean protected org.springframework.web.client.RestTemplate restTemplate()
protected Long getConnectionTimeout()
protected Long getReadTimeout()
Copyright © 2000–2023 LOCKSS Program. All rights reserved.