fixed usage statement

This commit is contained in:
Adrian Cole 2011-04-02 00:30:49 -07:00
parent 82d84b1ca1
commit a3a9bc3948
1 changed files with 8 additions and 8 deletions

View File

@ -29,16 +29,16 @@ import java.util.List;
/** /**
* Contains options supported for HTTP GET operations. <h2> * Contains options supported for HTTP GET operations. <h2>
* Usage</h2> The recommended way to instantiate a GetObjectOptions object is to statically import * Usage</h2> The recommended way to instantiate a {@link GetOptions} object is to statically import
* GetObjectOptions.Builder.* and invoke a static creation method followed by an instance mutator * GetOptions.Builder.* and invoke a static creation method followed by an instance mutator (if
* (if needed): * needed):
* <p/> * <p/>
* <code> * <code>
* import static org.jclouds.http.options.GetOptions.Builder.* * import static org.jclouds.blobstore.options.GetOptions.Builder.*
* *
* *
* // this will get the first megabyte of an object, provided it wasn't modified since yesterday * // this will get the first megabyte of an blob, provided it wasn't modified since yesterday
* Future<S3Object> object = client.get("objectName",range(0,1024).ifUnmodifiedSince(new Date().minusDays(1))); * blob = blobStore.getBlob("container, "blobName",range(0,1024).ifUnmodifiedSince(new Date().minusDays(1)));
* <code> * <code>
* *
* @author Adrian Cole * @author Adrian Cole
@ -275,8 +275,8 @@ public class GetOptions {
@Override @Override
public String toString() { public String toString() {
return "[ranges=" + ranges + ", ifModifiedSince=" + ifModifiedSince + ", ifUnmodifiedSince=" return "[ranges=" + ranges + ", ifModifiedSince=" + ifModifiedSince + ", ifUnmodifiedSince=" + ifUnmodifiedSince
+ ifUnmodifiedSince + ", ifMatch=" + ifMatch + ", ifNoneMatch=" + ifNoneMatch + "]"; + ", ifMatch=" + ifMatch + ", ifNoneMatch=" + ifNoneMatch + "]";
} }
} }