diff options
author | PatrikBuhr <patrik.buhr@est.tech> | 2020-12-14 13:33:06 +0100 |
---|---|---|
committer | PatrikBuhr <patrik.buhr@est.tech> | 2020-12-14 13:33:47 +0100 |
commit | d7cc059bfce52da57e8cc12e17280641878bce19 (patch) | |
tree | 954bcdd6b6e98a4affbb627704ca19ce9cffc9d7 /a1-policy-management/src/main/java | |
parent | f28594d423c9da9988d6a23ab49c4e787a5ae089 (diff) |
Removing host from genernated doc
Change-Id: If25daa12d270a43928f583d3a5cbc2258bb426d9
Issue-ID: CCSDK-2966
Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Diffstat (limited to 'a1-policy-management/src/main/java')
-rw-r--r-- | a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java index ab3e89ef..6449e48b 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/configuration/ApplicationConfig.java @@ -81,26 +81,31 @@ public class ApplicationConfig { private Map<String, ControllerConfig> controllerConfigs = new HashMap<>(); + private WebClientConfig webClientConfig = null; + public synchronized Collection<RicConfig> getRicConfigs() { return this.ricConfigs.values(); } public WebClientConfig getWebClientConfig() { - HttpProxyConfig httpProxyConfig = ImmutableHttpProxyConfig.builder() // - .httpProxyHost(this.httpProxyHost) // - .httpProxyPort(this.httpProxyPort) // - .build(); - - return ImmutableWebClientConfig.builder() // - .keyStoreType(this.sslKeyStoreType) // - .keyStorePassword(this.sslKeyStorePassword) // - .keyStore(this.sslKeyStore) // - .keyPassword(this.sslKeyPassword) // - .isTrustStoreUsed(this.sslTrustStoreUsed) // - .trustStore(this.sslTrustStore) // - .trustStorePassword(this.sslTrustStorePassword) // - .httpProxyConfig(httpProxyConfig) // - .build(); + if (this.webClientConfig == null) { + HttpProxyConfig httpProxyConfig = ImmutableHttpProxyConfig.builder() // + .httpProxyHost(this.httpProxyHost) // + .httpProxyPort(this.httpProxyPort) // + .build(); + + this.webClientConfig = ImmutableWebClientConfig.builder() // + .keyStoreType(this.sslKeyStoreType) // + .keyStorePassword(this.sslKeyStorePassword) // + .keyStore(this.sslKeyStore) // + .keyPassword(this.sslKeyPassword) // + .isTrustStoreUsed(this.sslTrustStoreUsed) // + .trustStore(this.sslTrustStore) // + .trustStorePassword(this.sslTrustStorePassword) // + .httpProxyConfig(httpProxyConfig) // + .build(); + } + return this.webClientConfig; } public synchronized ControllerConfig getControllerConfig(String name) throws ServiceException { |