Port to java 17
[ccsdk/apps.git] / ms / neng / src / main / java / org / onap / ccsdk / apps / ms / neng / service / extinf / impl / AaiServiceImpl.java
index 7356c3b..2880f30 100644 (file)
@@ -101,7 +101,7 @@ public class AaiServiceImpl {
                 throw new NengException("Error while validating name with A&AI");
             }
         } catch (HttpClientErrorException e) {
-            log.warning(e.getStatusCode().name() + " -- " + e.getResponseBodyAsString());
+            log.warning(e.getStatusCode() + " -- " + e.getResponseBodyAsString());
             if (HttpStatus.NOT_FOUND.equals(e.getStatusCode())) {
                 return buildResponse(false);
             }
@@ -123,7 +123,7 @@ public class AaiServiceImpl {
             HttpClient client = HttpClientBuilder.create()
                 .setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE)
                 .build();
-            this.restTemplate = restBld.requestFactory(new HttpComponentsClientHttpRequestFactory(client)).build();
+            //this.restTemplate = restBld.requestFactory(new HttpComponentsClientHttpRequestFactory(client)).build();
         }
         return this.restTemplate;
     }