diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ResourceRegistryContextClientImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ResourceRegistryContextClientImpl.java index 510871e..dd7b338 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ResourceRegistryContextClientImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ResourceRegistryContextClientImpl.java @@ -21,7 +21,6 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegis import org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextAlreadyPresentException; import org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException; import org.gcube.informationsystem.resourceregistry.api.request.BaseRequestInfo; -import org.gcube.informationsystem.resourceregistry.api.rest.AccessPath; import org.gcube.informationsystem.resourceregistry.api.rest.ContextPath; import org.gcube.informationsystem.resourceregistry.api.rest.httputils.HTTPUtility; import org.gcube.informationsystem.serialization.ElementMapper; @@ -68,7 +67,7 @@ public class ResourceRegistryContextClientImpl extends BaseRequestInfo implement private void addIncludeMeta(Map queryParams, boolean includeMeta) throws UnsupportedEncodingException{ if(includeMeta) { - queryParams.put(AccessPath.INCLUDE_META_QUERY_PARAMETER, Boolean.toString(includeMeta)); + queryParams.put(ContextPath.INCLUDE_META_QUERY_PARAMETER, Boolean.toString(includeMeta)); } } @@ -80,7 +79,7 @@ public class ResourceRegistryContextClientImpl extends BaseRequestInfo implement private void addOffset(Map queryParams, Integer offset) throws UnsupportedEncodingException{ if(offset!=null) { - queryParams.put(AccessPath.OFFSET_QUERY_PARAMETER, offset.toString()); + queryParams.put(ContextPath.OFFSET_QUERY_PARAMETER, offset.toString()); } } @@ -92,7 +91,7 @@ public class ResourceRegistryContextClientImpl extends BaseRequestInfo implement private void addLimit(Map queryParams, Integer limit) throws UnsupportedEncodingException{ if(limit!=null) { - queryParams.put(AccessPath.LIMIT_QUERY_PARAMETER, limit.toString()); + queryParams.put(ContextPath.LIMIT_QUERY_PARAMETER, limit.toString()); } }