diff --git a/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java b/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java index fe161a2..de731a7 100644 --- a/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java +++ b/src/main/java/org/gcube/informationsystem/icproxy/profiles/ServiceEndpointProfile.java @@ -28,4 +28,7 @@ public class ServiceEndpointProfile { @Getter @Setter (AccessLevel.PROTECTED) private String accessPointPass; + @Getter + @Setter (AccessLevel.PROTECTED) + private String host; } diff --git a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java index 2d8d6fd..7267b3d 100644 --- a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java +++ b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java @@ -111,6 +111,7 @@ public class ServiceEndpointResource { ServiceEndpoint newResource= new ServiceEndpoint(); ServiceEndpoint.Profile profile=newResource.newProfile().category(resourceProfile.getCategory()).name(resourceProfile.getName()); profile.newPlatform().name(resourceProfile.getPlatform()).version((short)1).minorVersion((short)0).revisionVersion((short)0).buildVersion((short)0); + profile.newRuntime().hostedOn(resourceProfile.getHost()); ServiceEndpoint.AccessPoint ap=new ServiceEndpoint.AccessPoint(); ap.name(resourceProfile.getAccessPointName()); ap.address(resourceProfile.getAccessPointAddress());