Revision ee77dbf1 src/gr/grnet/pithos/web/client/rest/DeleteRequest.java
b/src/gr/grnet/pithos/web/client/rest/DeleteRequest.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
package gr.grnet.pithos.web.client.rest; |
37 | 37 |
|
38 |
import gr.grnet.pithos.web.client.Pithos; |
|
38 | 39 |
import gr.grnet.pithos.web.client.Resource; |
39 | 40 |
|
40 | 41 |
import java.util.HashMap; |
... | ... | |
55 | 56 |
|
56 | 57 |
protected static final int MAX_RETRIES = 3; |
57 | 58 |
|
59 |
private final Pithos app; |
|
60 |
|
|
58 | 61 |
protected int retries = 0; |
59 | 62 |
|
60 | 63 |
private String api; |
... | ... | |
69 | 72 |
|
70 | 73 |
public abstract void onError(Throwable t); |
71 | 74 |
|
72 |
public DeleteRequest(String api, String owner, String path) { |
|
75 |
public DeleteRequest(Pithos app, String api, String owner, String path) { |
|
76 |
this.app = app; |
|
73 | 77 |
this.api = api; |
74 | 78 |
this.owner = owner; |
75 | 79 |
this.path = path; |
... | ... | |
90 | 94 |
|
91 | 95 |
@Override |
92 | 96 |
public Resource deserialize(Response response) { |
93 |
return Resource.createFromResponse(Resource.class, owner, response, null); |
|
97 |
return Resource.createFromResponse(app, Resource.class, owner, response, null);
|
|
94 | 98 |
} |
95 | 99 |
|
96 | 100 |
@Override |
Also available in: Unified diff