Author: adietish
Date: 2010-10-21 11:07:14 -0400 (Thu, 21 Oct 2010)
New Revision: 25977
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java
Log:
[JBIDE-7384] implemented RESTful status handling
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-21
14:53:50 UTC (rev 25976)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/client/DeltaCloudClient.java 2010-10-21
15:07:14 UTC (rev 25977)
@@ -83,7 +83,7 @@
@Override
public String toString() {
- return "/api/" + getResourceName();
+ return "/" + getResourceName();
}
public String getResourceName() {
@@ -118,7 +118,7 @@
private String sendRequest(String path, RequestType requestType) throws
DeltaCloudClientException {
DefaultHttpClient httpClient = addCredentials(new DefaultHttpClient());
- String requestUrl = baseUrl.toString() + path;
+ String requestUrl = baseUrl.toString() + "/api" + path;
logger.debug("Sending Request to: " + requestUrl);
try {
Show replies by date