Fixed path parameters on AddToContext and RemoveFromContexts
This commit is contained in:
parent
453c0316ce
commit
553232a841
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue