package gr.grnet.pithos.web.client.rest;
-import gr.grnet.pithos.web.client.Pithos;
import gr.grnet.pithos.web.client.Resource;
import java.util.HashMap;
public abstract class PutRequest implements ScheduledCommand {
- private final Pithos app;
-
private String api;
protected String owner;
public abstract void onError(Throwable t);
- public PutRequest(Pithos app, String api, String owner, String path) {
- this.app = app;
+ public PutRequest(String api, String owner, String path) {
this.api = api;
this.owner = owner;
this.path = path;
@Override
public Resource deserialize(Response response) {
- return Resource.createFromResponse(app, Resource.class, owner, response, null);
+ return Resource.createFromResponse(Resource.class, owner, response, null);
}
@Override