Revision 08922f29 src/com/rackspace/cloud/files/api/client/ContainerObjectManager.java
b/src/com/rackspace/cloud/files/api/client/ContainerObjectManager.java | ||
---|---|---|
292 | 292 |
resp = httpclient.execute(addObject); |
293 | 293 |
bundle.setHttpResponse(resp); |
294 | 294 |
} catch (ClientProtocolException e) { |
295 |
e.printStackTrace(); |
|
295 | 296 |
CloudServersException cse = new CloudServersException(); |
296 | 297 |
cse.setMessage(e.getLocalizedMessage()); |
297 | 298 |
throw cse; |
... | ... | |
348 | 349 |
String type) throws CloudServersException { |
349 | 350 |
String url = getSafeURL(Account.getAccount().getStorageUrl(), Container |
350 | 351 |
+ "/" + Path + Object); |
351 |
return executeMethod(DELETE, url,type);
|
|
352 |
return executeMethod(PUT, url,type);
|
|
352 | 353 |
} |
353 | 354 |
|
354 | 355 |
|
... | ... | |
365 | 366 |
url = url.substring(0, url.length()-1); |
366 | 367 |
} |
367 | 368 |
url =url+"?update="; |
368 |
Log.d(LOG, url); |
|
369 |
return executeMethod(DELETE, url, " text/plain; charset=UTF-8", headers);
|
|
369 |
Log.d(LOG,"Update URL="+ url);
|
|
370 |
return executeMethod(POST, url, " text/plain; charset=UTF-8", headers);
|
|
370 | 371 |
} |
371 | 372 |
|
372 | 373 |
|
Also available in: Unified diff