diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java index f170eb0..7a31e2b 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SDMXClient.java @@ -20,6 +20,8 @@ import org.sdmxsource.sdmx.api.model.beans.SdmxBeans; import org.sdmxsource.sdmx.api.model.beans.base.AgencyBean; import org.sdmxsource.sdmx.api.model.beans.codelist.CodelistBean; import org.sdmxsource.sdmx.api.model.beans.datastructure.DataflowBean; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @@ -28,7 +30,9 @@ import org.sdmxsource.sdmx.api.model.beans.datastructure.DataflowBean; * */ public class SDMXClient { - + + private static Logger logger = LoggerFactory.getLogger(SDMXClient.class); + public static enum TYPE { INTERNAL, ANOTHER } private SDMXRegistryClient client; @@ -38,15 +42,17 @@ public class SDMXClient { public SDMXClient(){ type=TYPE.INTERNAL; url=null; + logger.info("SDMXClient: Internal"); SDMXRegistryDescriptor descriptor = new GCubeSDMXRegistryDescriptor(); - client = new FusionRegistryClient(descriptor); + client = new FusionRegistryClient(descriptor); } public SDMXClient(String url){ type=TYPE.ANOTHER; this.url=url; - SDMXRegistryDescriptorImpl descriptor = new SDMXRegistryDescriptorImpl(); + logger.info("SDMXClient: "+url); + SDMXRegistryDescriptorImpl descriptor = new SDMXRegistryDescriptorImpl(); descriptor.setUrl(SDMXRegistryInterfaceType.RESTV2_1, url); client = new FusionRegistryClient(descriptor); }