Search in sources :

Example 1 with GetOptions

use of org.jclouds.http.options.GetOptions in project druid by druid-io.

the class CloudFilesObjectApiProxy method get.

public CloudFilesObject get(String path, long start) {
    final SwiftObject swiftObject;
    if (start == 0) {
        swiftObject = objectApi.get(path);
    } else {
        swiftObject = objectApi.get(path, new GetOptions().startAt(start));
    }
    Payload payload = swiftObject.getPayload();
    return new CloudFilesObject(payload, this.region, this.container, path);
}
Also used : SwiftObject(org.jclouds.openstack.swift.v1.domain.SwiftObject) Payload(org.jclouds.io.Payload) GetOptions(org.jclouds.http.options.GetOptions)

Aggregations

GetOptions (org.jclouds.http.options.GetOptions)1 Payload (org.jclouds.io.Payload)1 SwiftObject (org.jclouds.openstack.swift.v1.domain.SwiftObject)1