/*
- * Copyright 2011-2012 GRNET S.A. All rights reserved.
+ * Copyright 2011-2013 GRNET S.A. All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
package gr.grnet.pithos.web.client.rest;
+import gr.grnet.pithos.web.client.Helpers;
+import gr.grnet.pithos.web.client.Pithos;
import gr.grnet.pithos.web.client.Resource;
import java.util.HashMap;
@Override
public void execute() {
+ Pithos.LOG("DELETE ", api + owner + path);
+
RequestBuilder builder = new RequestBuilder(RequestBuilder.DELETE, api + owner + path);
- for (String header : headers.keySet()) {
- builder.setHeader(header, headers.get(header));
- }
+ Helpers.setHeaders(builder, headers);
+
try {
builder.sendRequest("", new RestRequestCallback<Resource>(api + owner + path, Response.SC_NO_CONTENT) {
@Override
retries++;
}
catch (RequestException e) {
+ Pithos.LOG(e);
}
}