From 4473b8e201d5e4897c3eabfc9735d53377571e65 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 24 Feb 2017 10:25:32 +0000 Subject: [PATCH] Generalizing solution by using HTTPCall provided by API git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@144238 82a268e6-3cf1-43bd-a215-b396298e98cf --- ...eRegistryCall.java => ResourceRegistryClientCall.java} | 4 ++-- .../client/proxy/ResourceRegistryClientImpl.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/{ResourceRegistryCall.java => ResourceRegistryClientCall.java} (86%) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryCall.java b/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientCall.java similarity index 86% rename from src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryCall.java rename to src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientCall.java index 95ea9b2..75c599a 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryCall.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientCall.java @@ -8,12 +8,12 @@ import javax.xml.ws.EndpointReference; import org.gcube.common.clients.Call; import org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPCall; -public class ResourceRegistryCall implements Call { +public class ResourceRegistryClientCall implements Call { protected final Class clazz; protected final HTTPCall httpCall; - public ResourceRegistryCall(Class clazz, HTTPCall httpCall) { + public ResourceRegistryClientCall(Class clazz, HTTPCall httpCall) { this.clazz = clazz; this.httpCall = httpCall; } diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientImpl.java index 8a9dca5..b64702a 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/client/proxy/ResourceRegistryClientImpl.java @@ -67,7 +67,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { HTTPCall httpCall = new HTTPCall<>(stringWriter.toString(), HTTPMETHOD.GET, null); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryClientCall call = new ResourceRegistryClientCall<>( clazz, httpCall); ERType erType = delegate.make(call); @@ -100,7 +100,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { HTTPCall httpCall = new HTTPCall<>(stringWriter.toString(), HTTPMETHOD.GET, parameters); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryClientCall call = new ResourceRegistryClientCall<>( String.class, httpCall); String ret = delegate.make(call); @@ -138,7 +138,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { HTTPCall httpCall = new HTTPCall<>(stringWriter.toString(), HTTPMETHOD.GET, parameters); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryClientCall call = new ResourceRegistryClientCall<>( String.class, httpCall); String ret = delegate.make(call); @@ -175,7 +175,7 @@ public class ResourceRegistryClientImpl implements ResourceRegistryClient { HTTPCall httpCall = new HTTPCall<>(stringWriter.toString(), HTTPMETHOD.GET, parameters); - ResourceRegistryCall call = new ResourceRegistryCall<>( + ResourceRegistryClientCall call = new ResourceRegistryClientCall<>( String.class, httpCall); String schema = delegate.make(call); logger.info("Got schema for {} is {}", type, schema);