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 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

      public String toString()
      Provides a string representation of the configuration for logging purposes.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the configuration