Fixing REST path
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-client@131073 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0e13a51ed9
commit
97535bbbae
|
@ -18,8 +18,8 @@ import org.gcube.common.clients.GCubeEndpoint;
|
|||
import org.gcube.common.clients.delegates.AsyncProxyDelegate;
|
||||
import org.gcube.common.clients.delegates.ProxyDelegate;
|
||||
import org.gcube.common.clients.exceptions.ServiceException;
|
||||
import org.gcube.informationsystem.resourceregistry.AccessRESTPath;
|
||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.InvalidQueryException;
|
||||
import org.gcube.informationsystem.resourceregistry.api.rest.AccessPath;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -63,14 +63,14 @@ public class ResourceRegistryClient {
|
|||
public String call(GCubeEndpoint endpoint) throws Exception {
|
||||
|
||||
StringBuilder callUrl = new StringBuilder(endpoint.getAddress());
|
||||
callUrl.append("/").append(AccessRESTPath.ACCESS_PATH_PART)
|
||||
callUrl.append("/").append(AccessPath.ACCESS_PATH_PART)
|
||||
.append("/");
|
||||
|
||||
appendQueryParameter(callUrl, AccessRESTPath.QUERY_PARAM, query);
|
||||
appendQueryParameter(callUrl, AccessPath.QUERY_PARAM, query);
|
||||
|
||||
if (fetchPlan != null) {
|
||||
appendQueryParameter(callUrl,
|
||||
AccessRESTPath.FETCH_PLAN_PARAM, fetchPlan);
|
||||
AccessPath.FETCH_PLAN_PARAM, fetchPlan);
|
||||
}
|
||||
|
||||
URL url = new URL(callUrl.toString());
|
||||
|
|
Loading…
Reference in New Issue