public final class CloudStorageOptions extends Object
Modifier and Type | Method and Description |
---|---|
static CloudStorageOption.OpenCopy |
withAcl(Acl acl)
Sets the ACL value on a Cloud Storage object.
|
static CloudStorageOption.OpenCopy |
withBlockSize(int size)
Sets the block size (in bytes) when talking to the Google Cloud Storage server.
|
static CloudStorageOption.OpenCopy |
withCacheControl(String cacheControl)
Sets the
Cache-Control HTTP header on an object. |
static CloudStorageOption.OpenCopy |
withChannelReopen(int count)
Sets the max number of times that the channel can be reopened if reading fails because the
channel unexpectedly closes.
|
static CloudStorageOption.OpenCopy |
withContentDisposition(String contentDisposition)
Sets the
Content-Disposition HTTP header on an object. |
static CloudStorageOption.OpenCopy |
withContentEncoding(String contentEncoding)
Sets the
Content-Encoding HTTP header on an object. |
static CloudStorageOption.OpenCopy |
withMimeType(String mimeType)
Sets the mime type header on an object, e.g.
|
static CloudStorageOption.OpenCopy |
withoutCaching()
Disables caching on an object.
|
static CloudStorageOption.OpenCopy |
withUserMetadata(String key,
String value)
Sets an unmodifiable piece of user metadata on a Cloud Storage object.
|
public static CloudStorageOption.OpenCopy withMimeType(String mimeType)
"text/plain"
.public static CloudStorageOption.OpenCopy withoutCaching()
withCacheControl("no-cache")
.public static CloudStorageOption.OpenCopy withCacheControl(String cacheControl)
Cache-Control
HTTP header on an object.public static CloudStorageOption.OpenCopy withContentDisposition(String contentDisposition)
Content-Disposition
HTTP header on an object.public static CloudStorageOption.OpenCopy withContentEncoding(String contentEncoding)
Content-Encoding
HTTP header on an object.public static CloudStorageOption.OpenCopy withAcl(Acl acl)
public static CloudStorageOption.OpenCopy withUserMetadata(String key, String value)
public static CloudStorageOption.OpenCopy withBlockSize(int size)
The default is .
public static CloudStorageOption.OpenCopy withChannelReopen(int count)
The default is 0.
Copyright © 2019 Google LLC. All rights reserved.