Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Finkbeiner2014-09-02 12:57:53 -0400
committerAndrew M. Finkbeiner2014-09-02 12:57:53 -0400
commit201e1348e03dfc9c1257ebe2457a693bafdce958 (patch)
tree7cb839c4a5e526882a5a92a65f1ad74a5ff4ccac /plugins/org.eclipse.osee.ote.master.rest.client
parent713ca12c8f41ca2736aab3aa9032e7acd8b37462 (diff)
downloadorg.eclipse.osee-201e1348e03dfc9c1257ebe2457a693bafdce958.tar.gz
org.eclipse.osee-201e1348e03dfc9c1257ebe2457a693bafdce958.tar.xz
org.eclipse.osee-201e1348e03dfc9c1257ebe2457a693bafdce958.zip
bug[ats_ATS103706]: Switch rest app type to xml
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/GetAvailableServers.java2
-rw-r--r--plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/RemoveServer.java2
3 files changed, 3 insertions, 3 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 bd41d4dd54..94616521a1 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_JSON).post(Entity.json(server));
+ MediaType.APPLICATION_XML).post(Entity.json(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/GetAvailableServers.java b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/GetAvailableServers.java
index 6a5065de95..a3af0bd437 100644
--- a/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/GetAvailableServers.java
+++ b/plugins/org.eclipse.osee.ote.master.rest.client/src/org/eclipse/osee/ote/master/rest/client/internal/GetAvailableServers.java
@@ -25,7 +25,7 @@ public class GetAvailableServers implements Callable<OTEMasterServerAvailableNod
WebTarget resource = webClientProvider.target(uri);
OTEServer[] servers =
resource.path(OTEMasterServerImpl.CONTEXT_NAME).path(OTEMasterServerImpl.CONTEXT_SERVERS).request(
- MediaType.APPLICATION_JSON).get(OTEServer[].class);
+ MediaType.APPLICATION_XML).get(OTEServer[].class);
result.setServers(servers);
result.setSuccess(true);
} catch (Throwable 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 ebf257a8fc..dde69a144a 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_JSON).method(HttpMethod.DELETE, Entity.json(server));
+ MediaType.APPLICATION_XML).method(HttpMethod.DELETE, Entity.json(server));
} catch (Throwable th) {
result.setSuccess(false);
result.setThrowable(th);

Back to the top