diff options
Diffstat (limited to 'artifactbroker/plugins/reception-plugins/src/main/java')
3 files changed, 96 insertions, 1 deletions
diff --git a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java index 04c978b..d2ff9ff 100644 --- a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java +++ b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcConfiguration.java @@ -114,4 +114,24 @@ public class SdcConfiguration implements IConfiguration { public Boolean isUseHttpsWithDmaap() { return configParameters.isUseHttpsWithDmaap(); } + + @Override + public int getHttpsProxyPort() { + return configParameters.getHttpsProxyPort(); + } + + @Override + public String getHttpsProxyHost() { + return configParameters.getHttpsProxyHost(); + } + + @Override + public String getHttpProxyHost() { + return configParameters.getHttpProxyHost(); + } + + @Override + public int getHttpProxyPort() { + return configParameters.getHttpProxyPort(); + } } diff --git a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterBuilder.java b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterBuilder.java index 65305c1..2476b07 100644 --- a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterBuilder.java +++ b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterBuilder.java @@ -32,6 +32,7 @@ public class SdcReceptionHandlerConfigurationParameterBuilder { private boolean activeserverTlsAuth; private boolean filterinEmptyResources; private boolean useHttpsWithDmaap; + private boolean useHttpsWithSDC; private int pollingTimeout; private int pollingInterval; private String user; @@ -42,6 +43,10 @@ public class SdcReceptionHandlerConfigurationParameterBuilder { private String environmentName; private String keystorePath; private String keystorePassword; + private int httpsproxyPort; + private int httpproxyPort; + private String httpsproxyHost; + private String httpproxyHost; private List<String> messageBusAddress; private List<String> artifactTypes; private int retryDelay; @@ -236,6 +241,15 @@ public class SdcReceptionHandlerConfigurationParameterBuilder { } /** + * Returns the isUseHttpsWithSDC flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. + * + * @return the isUseHttpsWithSDC + */ + public Boolean getIsUseHttpsWithSDC() { + return useHttpsWithSDC; + } + + /** * Returns the polling interval of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. * * @return the pollingInterval @@ -351,7 +365,38 @@ public class SdcReceptionHandlerConfigurationParameterBuilder { public int getRetryDelay() { return retryDelay; } - + /** + * Returns the https proxy port of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. + * + * @return the httpsproxyPort + */ + public int getHttpsProxyPort() { + return httpsproxyPort; + } + /** + * Returns the https proxy host of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. + * + * @return the httpsproxyHost + */ + public String getHttpsProxyHost() { + return httpsproxyHost; + } + /** + * Returns the http proxy port of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. + * + * @return the httpproxyPort + */ + public int getHttpProxyPort() { + return httpproxyPort; + } + /** + * Returns the http proxy host of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance. + * + * @return the httpsproxyHost + */ + public String getHttpProxyHost() { + return httpproxyHost; + } } diff --git a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java index 6746dc3..c204d75 100644 --- a/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java +++ b/artifactbroker/plugins/reception-plugins/src/main/java/org/onap/policy/distribution/reception/handling/sdc/SdcReceptionHandlerConfigurationParameterGroup.java @@ -40,6 +40,10 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan private int pollingInterval; private int pollingTimeout; private int retryDelay; + private int httpsProxyPort; + private int httpProxyPort; + private String httpsProxyHost; + private String httpProxyHost; private String consumerId; private List<String> artifactTypes; private String consumerGroup; @@ -49,6 +53,7 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan private boolean activeServerTlsAuth; private boolean isFilterInEmptyResources; private boolean isUseHttpsWithDmaap; + private boolean isUseHttpsWithSDC; /** * The constructor for instantiating {@link SdcReceptionHandlerConfigurationParameterGroup} class. @@ -64,6 +69,10 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan pollingInterval = builder.getPollingInterval(); pollingTimeout = builder.getPollingTimeout(); retryDelay = builder.getRetryDelay(); + httpsProxyPort = builder.getHttpsProxyPort(); + httpsProxyHost = builder.getHttpsProxyHost(); + httpProxyPort = builder.getHttpProxyPort(); + httpProxyHost = builder.getHttpProxyHost(); consumerId = builder.getConsumerId(); artifactTypes = builder.getArtifactTypes(); consumerGroup = builder.getConsumerGroup(); @@ -73,6 +82,7 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan activeServerTlsAuth = builder.isActiveserverTlsAuth(); isFilterInEmptyResources = builder.isFilterinEmptyResources(); isUseHttpsWithDmaap = builder.getIsUseHttpsWithDmaap(); + isUseHttpsWithSDC = builder.getIsUseHttpsWithSDC(); } @@ -140,6 +150,26 @@ public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHan return isUseHttpsWithDmaap; } + public boolean isUseHttpsWithSDC() { + return isUseHttpsWithSDC; + } + + public int getHttpsProxyPort() { + return httpsProxyPort; + } + + public String getHttpsProxyHost() { + return httpsProxyHost; + } + + public int getHttpProxyPort() { + return httpProxyPort; + } + + public String getHttpProxyHost() { + return httpProxyHost; + } + /** * {@inheritDoc}. */ |