diff options
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java b/vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java index c4bc852ff..63762373a 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/PombaRestInterface.java @@ -42,11 +42,12 @@ public class PombaRestInterface extends AAIRestInterface { private Client client = null; - private void initRestClient() + @Override + protected void initRestClient() { if (client == null) { try { - client = httpsAuthClientFactory.getClient(HttpClientMode.UNSECURE); + client = httpsAuthClientFactory.getClient(HttpClientMode.WITH_KEYSTORE); } catch (Exception e) { logger.info(EELFLoggerDelegate.errorLogger, "Exception in REST call to DB in initRestClient" + e.toString()); @@ -78,6 +79,7 @@ public class PombaRestInterface extends AAIRestInterface { } else { logger.debug(EELFLoggerDelegate.debugLogger, getInvalidResponseLogMessage(url, methodName, cres)); } + return cres; } catch (Exception e) { logger.debug(EELFLoggerDelegate.debugLogger, getFailedResponseLogMessage(url, methodName, e)); } |