Package org.cibseven.webapp.rest
Class RestTemplateConfiguration
java.lang.Object
org.cibseven.webapp.rest.RestTemplateConfiguration
@Configuration
@ConfigurationProperties(prefix="cibseven.webclient.rest")
@ConditionalOnProperty(prefix="cibseven.webclient.rest",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class RestTemplateConfiguration
extends Object
Configuration properties for the CustomRestTemplate.
This class holds all configurable properties for HTTP client connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the maximum total connections.toString()Provides a string representation of the configuration for logging purposes.
-
Constructor Details
-
RestTemplateConfiguration
public RestTemplateConfiguration()
-
-
Method Details
-
getMaxConnTotal
public int getMaxConnTotal()Get the maximum total connections. If not explicitly set, returns 2 * maxConnPerRoute.- Returns:
- the maximum total connections
-
toString
Provides a string representation of the configuration for logging purposes.
-