Skip to content

Commit

Permalink
Merge pull request #190 from catenax-ng/release/v2.1.0-add-timeToLive…
Browse files Browse the repository at this point in the history
…-attribute

[ 7° ] - Release/v2.1.0 add time to live attribute:  added timeToLive attribute to the dpp-backend
  • Loading branch information
saudkhan116 authored Feb 2, 2024
2 parents 63cca6a + 566a999 commit 4c757ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package org.eclipse.tractusx.digitalproductpass.models.catenax;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -34,6 +35,7 @@
* This class consists exclusively to define attributes and methods related to discovering the needed Endpoints.
**/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class Discovery {

/** ATTRIBUTES **/
Expand Down Expand Up @@ -73,14 +75,17 @@ public static class Endpoint {
String documentation;
@JsonProperty("resourceId")
String resourceId;
@JsonProperty("timeToLive")
String timeToLive;

/** CONSTRUCTOR(S) **/
public Endpoint(String type, String description, String endpointAddress, String documentation, String resourceId) {
public Endpoint(String type, String description, String endpointAddress, String documentation, String resourceId, String timeToLive) {
this.type = type;
this.description = description;
this.endpointAddress = endpointAddress;
this.documentation = documentation;
this.resourceId = resourceId;
this.timeToLive = timeToLive;
}
public Endpoint() {
}
Expand Down Expand Up @@ -121,5 +126,13 @@ public String getResourceId() {
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
@SuppressWarnings("Unused")
public String getTimeToLive() {
return timeToLive;
}
@SuppressWarnings("Unused")
public void setTimeToLive(String timeToLive) {
this.timeToLive = timeToLive;
}
}
}
File renamed without changes.

0 comments on commit 4c757ed

Please sign in to comment.