Author: adietish
Date: 2010-10-22 17:30:49 -0400 (Fri, 22 Oct 2010)
New Revision: 26011
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
Log:
[JBIDE-7401] fixed by changing to POST request
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-10-22 21:09:02
UTC (rev 26010)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-10-22 21:30:49
UTC (rev 26011)
@@ -1,3 +1,9 @@
+2010-10-22 André Dietisheim <adietish(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
+ (shutdownInstance): [JBIDE-7401] changed to POST (api break in dc 0.0.8)
+ (startInstance): [JBIDE-7401] changed to POST (api break in dc 0.0.8)
+
2010-10-22 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java (listProfile): Fix
to
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java 2010-10-22
21:09:02 UTC (rev 26010)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java 2010-10-22
21:30:49 UTC (rev 26011)
@@ -362,17 +362,26 @@
@Override
public void rebootInstance(String instanceId) throws DeltaCloudClientException {
+ /**
+ * shouldn't that be PUT? changing resource states == PUT!
+ */
sendRequest(DCNS.INSTANCES + "/" + instanceId + DCNS.REBOOT,
RequestType.GET);
}
@Override
public void shutdownInstance(String instanceId) throws DeltaCloudClientException {
- sendRequest(DCNS.INSTANCES + "/" + instanceId + DCNS.STOP, RequestType.GET);
+ /**
+ * shouldn't that be PUT? changing resource states == PUT!
+ */
+ sendRequest(DCNS.INSTANCES + "/" + instanceId + DCNS.STOP,
RequestType.POST);
}
@Override
public void startInstance(String instanceId) throws DeltaCloudClientException {
- sendRequest(DCNS.INSTANCES + "/" + instanceId + DCNS.START,
RequestType.GET);
+ /**
+ * shouldn't that be PUT? changing resource states == PUT!
+ */
+ sendRequest(DCNS.INSTANCES + "/" + instanceId + DCNS.START,
RequestType.POST);
}
@Override
Show replies by date