Fixed path parameters on AddToContext and RemoveFromContexts

This commit is contained in:
Luca Frosini 2020-10-30 21:05:56 +01:00
parent 453c0316ce
commit 553232a841
1 changed files with 4 additions and 4 deletions

View File

@ -570,10 +570,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
gxHTTPStringRequest.from(ResourceRegistryPublisher.class.getSimpleName());
gxHTTPStringRequest.path(SharingPath.SHARING_PATH_PART);
gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART);
gxHTTPStringRequest.path(contextUUID.toString());
gxHTTPStringRequest.path(identifiableElementTypeName);
gxHTTPStringRequest.path(instanceUUID.toString());
gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART);
gxHTTPStringRequest.path(contextUUID.toString());
HttpURLConnection httpURLConnection = gxHTTPStringRequest.put();
boolean added = HTTPUtility.getResponse(Boolean.class, httpURLConnection);
@ -629,10 +629,10 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
gxHTTPStringRequest.from(ResourceRegistryPublisher.class.getSimpleName());
gxHTTPStringRequest.path(SharingPath.SHARING_PATH_PART);
gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART);
gxHTTPStringRequest.path(contextUUID.toString());
gxHTTPStringRequest.path(identifiableElementTypeName);
gxHTTPStringRequest.path(instanceUUID.toString());
gxHTTPStringRequest.path(SharingPath.CONTEXTS_PATH_PART);
gxHTTPStringRequest.path(contextUUID.toString());
HttpURLConnection httpURLConnection = gxHTTPStringRequest.delete();
boolean removed = HTTPUtility.getResponse(Boolean.class, httpURLConnection);