diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-04-18 16:18:48 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-04-18 16:18:48 +0200 |
commit | b74d7da07674a9727f73c6769567687ebaa0a0ce (patch) | |
tree | aa55635c5fa569cd763b3a356d3cdf2079d92201 | |
parent | e73d109404113bd6d6f12749559c19adf3b3e5a8 (diff) |
Enhance BabelArtifact object in babel with setters and noargs constructor1.13.0
- this makes the object available for Jackson object mapping
Issue-ID: AAI-3830
Change-Id: I5c8827d98d302fb0c48e3ae8b638629c3dab98e7
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r-- | pom.xml | 6 | ||||
-rw-r--r-- | src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java | 25 | ||||
-rw-r--r-- | src/main/resources/application.properties | 2 |
3 files changed, 15 insertions, 18 deletions
@@ -384,6 +384,12 @@ <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-sleuth-zipkin</artifactId> </dependency> + <dependency> + <groupId>org.projectlombok</groupId> + <artifactId>lombok</artifactId> + <version>1.18.32</version> + <scope>provided</scope> + </dependency> </dependencies> <dependencyManagement> <dependencies> diff --git a/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java b/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java index 86bf0cc..eb458ac 100644 --- a/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java +++ b/src/main/java/org/onap/aai/babel/service/data/BabelArtifact.java @@ -21,7 +21,14 @@ package org.onap.aai.babel.service.data; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + /** Bean representing the return artifacts of the Babel microservice. */ +@Data +@AllArgsConstructor +@NoArgsConstructor public class BabelArtifact { public enum ArtifactType { @@ -31,22 +38,4 @@ public class BabelArtifact { String name; ArtifactType type; String payload; - - public BabelArtifact(String name, ArtifactType type, String payload) { - this.name = name; - this.type = type; - this.payload = payload; - } - - public String getName() { - return name; - } - - public ArtifactType getType() { - return type; - } - - public String getPayload() { - return payload; - } } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f1d54df..b47e4d2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,6 @@ server.port=9516 +security.require-ssl=false +server.ssl.enabled=false server.ssl.key-store=${CONFIG_HOME}/auth/tomcat_keystore server.ssl.client-auth=need |