Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2014-09-13 08:44:30 -0400
committerAndrew M. Finkbeiner2014-09-13 08:45:30 -0400
commit9a88ba425592462812ef3cb765e218f86cbc46a4 (patch)
tree239b2eb00da3320ecfc3bd0dff072462e47a9f21 /plugins/org.eclipse.osee.ote.master.rest.client
parent5170228162f28d3d67d81e4132831af400107057 (diff)
downloadorg.eclipse.osee-9a88ba425592462812ef3cb765e218f86cbc46a4.tar.gz
org.eclipse.osee-9a88ba425592462812ef3cb765e218f86cbc46a4.tar.xz
org.eclipse.osee-9a88ba425592462812ef3cb765e218f86cbc46a4.zip
feature[ats_ATS106617]: Update lookup delete
Diffstat (limited to 'plugins/org.eclipse.osee.ote.master.rest.client')
-rw-r--r--plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
index b966e07956d..2cf3eafb5df 100644
--- a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
+++ b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java
@@ -1,11 +1,14 @@
package org.eclipse.osee.ote.master.rest.client.internal;
import java.net.URI;
+import java.util.UUID;
import java.util.concurrent.Callable;
+
import javax.ws.rs.HttpMethod;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriBuilder;
+
import org.eclipse.osee.jaxrs.client.JaxRsClient;
import org.eclipse.osee.ote.master.rest.client.OTEMasterServerResult;
import org.eclipse.osee.ote.master.rest.model.OTEServer;
@@ -25,12 +28,11 @@ public class RemoveServer implements Callable<OTEMasterServerResult> {
@Override
public OTEMasterServerResult call() throws Exception {
URI targetUri =
- UriBuilder.fromUri(uri).path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).build();
+ UriBuilder.fromUri(uri).path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).path(server.getUUID().toString()).build();
OTEMasterServerResult result = new OTEMasterServerResult();
try {
- webClientProvider.target(targetUri).request(MediaType.APPLICATION_XML).method(HttpMethod.DELETE,
- Entity.xml(server));
+ webClientProvider.target(targetUri).request(MediaType.APPLICATION_XML).method(HttpMethod.DELETE);
} catch (Throwable th) {
result.setSuccess(false);
result.setThrowable(th);

Back to the top