Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2014-09-02 14:13:20 -0400
committerAndrew M. Finkbeiner2014-09-02 14:13:20 -0400
commit0700c47721f77e167866376785acb6c07e7bdf2f (patch)
tree39d2189f730ce28d1b19a5613eeb9fe9c69670ce /plugins/org.eclipse.osee.ote.master.rest.client
parent201e1348e03dfc9c1257ebe2457a693bafdce958 (diff)
downloadorg.eclipse.osee-0700c47721f77e167866376785acb6c07e7bdf2f.tar.gz
org.eclipse.osee-0700c47721f77e167866376785acb6c07e7bdf2f.tar.xz
org.eclipse.osee-0700c47721f77e167866376785acb6c07e7bdf2f.zip
bug[ats_ATS103706]: XML App switch
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/AddServer.java2
-rw-r--r--plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/AddServer.java b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/AddServer.java
index 94616521a11..32fd2687565 100644
--- a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/AddServer.java
+++ b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/AddServer.java
@@ -27,7 +27,7 @@ public class AddServer implements Callable<OTEMasterServerResult> {
try {
WebTarget resource = webClientProvider.target(uri);
resource.path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).request(
- MediaType.APPLICATION_XML).post(Entity.json(server));
+ MediaType.APPLICATION_XML).post(Entity.xml(server));
} catch (Throwable th) {
result.setSuccess(false);
result.setThrowable(th);
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 dde69a144a4..5cfed8e621c 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
@@ -28,7 +28,7 @@ public class RemoveServer implements Callable<OTEMasterServerResult> {
try {
WebTarget resource = webClientProvider.target(uri);
resource.path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).request(
- MediaType.APPLICATION_XML).method(HttpMethod.DELETE, Entity.json(server));
+ MediaType.APPLICATION_XML).method(HttpMethod.DELETE, Entity.xml(server));
} catch (Throwable th) {
result.setSuccess(false);
result.setThrowable(th);

Back to the top