Add SNI support 62/133662/1
authorliamfallon <liam.fallon@est.tech>
Tue, 14 Mar 2023 17:23:26 +0000 (17:23 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 14 Mar 2023 17:24:41 +0000 (17:24 +0000)
SNI is now supported in Jersey.

Issue-ID: POLICY-4474
Change-Id: I7e52aa5c632409422c11ad875cb70ce1324ab655
Signed-off-by: liamfallon <liam.fallon@est.tech>
participant/participant-impl/participant-impl-a1pms/src/test/java/org/onap/policy/clamp/acm/participant/a1pms/utils/MockServerRest.java
participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/acm/participant/http/utils/MockServerRest.java
participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/acm/participant/policy/main/utils/MockServer.java

index dc0ed4a..eca42fe 100755 (executable)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * Copyright (C) 2022 Nordix Foundation.
+ * Copyright (C) 2022-2023 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class MockServerRest implements AutoCloseable {
     public MockServerRest(int restServerPort) {
         this.restServerPort = restServerPort;
         restServer = HttpServletServerFactoryInstance.getServerFactory().build("MockRestEndpoint", false, HOST,
-                restServerPort, "/", false, false);
+                restServerPort, false, "/", false, false);
         restServer.addServletClass(null, MockRestEndpoint.class.getName());
         restServer.setSerializationProvider(GsonMessageBodyHandler.class.getName());
         restServer.start();
index 1ac5212..fb7b790 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- * Copyright (C) 2022 Nordix Foundation.
+ * Copyright (C) 2022-2023 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class MockServerRest implements AutoCloseable {
     public MockServerRest(int restServerPort) {
         this.restServerPort = restServerPort;
         restServer = HttpServletServerFactoryInstance.getServerFactory().build("MockRestEndpoint", false, HOST,
-                restServerPort, "/", false, false);
+                restServerPort, false, "/", false, false);
         restServer.addServletClass(null, MockRestEndpoint.class.getName());
         restServer.setSerializationProvider(GsonMessageBodyHandler.class.getName());
         restServer.start();
index 7894b66..b45f1ea 100644 (file)
@@ -1,6 +1,6 @@
 /*-
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2022 Nordix Foundation.
+ *  Copyright (C) 2022-2023 Nordix Foundation.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public class MockServer implements AutoCloseable {
     public MockServer(int restServerPort) {
         this.restServerPort = restServerPort;
         restServer = HttpServletServerFactoryInstance.getServerFactory().build("MockRestEndpoint", false, HOST,
-                restServerPort, "/", false, false);
+                restServerPort, false, "/", false, false);
         restServer.addServletClass(null, MockRestEndpoint.class.getName());
         restServer.setSerializationProvider(GsonMessageBodyHandler.class.getName());
         restServer.start();