diff options
author | Andrew M. Finkbeiner | 2014-09-02 16:57:53 +0000 |
---|---|---|
committer | Andrew M. Finkbeiner | 2014-09-02 16:57:53 +0000 |
commit | 201e1348e03dfc9c1257ebe2457a693bafdce958 (patch) | |
tree | 7cb839c4a5e526882a5a92a65f1ad74a5ff4ccac /plugins/org.eclipse.osee.ote.master.rest.client | |
parent | 713ca12c8f41ca2736aab3aa9032e7acd8b37462 (diff) | |
download | org.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')
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 bd41d4dd545..94616521a11 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 6a5065de95d..a3af0bd4379 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 ebf257a8fc7..dde69a144a4 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); |