30 lines
743 B
Java
30 lines
743 B
Java
package com.rcarrillocruz.android.openstackdroid.operations.volume;
|
|
|
|
import org.apache.http.client.methods.HttpGet;
|
|
import org.apache.http.client.methods.HttpRequestBase;
|
|
|
|
import com.rcarrillocruz.android.openstackdroid.operations.ApiOperation;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
|
|
public class GetVolumesOperation implements ApiOperation {
|
|
|
|
private static final String urlTail = "/volumes/detail";
|
|
|
|
public GetVolumesOperation() {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
public HttpRequestBase invoke(Uri endpoint, String token, String tenantId,
|
|
Bundle params) {
|
|
// TODO Auto-generated method stub
|
|
HttpGet httpGet = new HttpGet(endpoint.toString()+urlTail);
|
|
httpGet.setHeader("X-Auth-Token", token);
|
|
|
|
return httpGet;
|
|
}
|
|
|
|
}
|