Interface CloudStorageFileAttributes (0.123.28)

public interface CloudStorageFileAttributes extends BasicFileAttributes

Interface for attributes on a Cloud Storage file or pseudo-directory.

Implements

BasicFileAttributes

Methods

acl()

public abstract Optional<List<Acl>> acl()
Returns
TypeDescription
com.google.common.base.Optional<List<com.google.cloud.storage.Acl>>

cacheControl()

public abstract Optional<String> cacheControl()

Returns Cache-Control HTTP header value, if set. See Also: "https://developers.google.com/storage/docs/reference-headers#cachecontrol"

Returns
TypeDescription
com.google.common.base.Optional<String>

contentDisposition()

public abstract Optional<String> contentDisposition()

Returns Content-Disposition HTTP header value, if set. See Also: "https://developers.google.com/storage/docs/reference-headers#contentdisposition"

Returns
TypeDescription
com.google.common.base.Optional<String>

contentEncoding()

public abstract Optional<String> contentEncoding()

Returns Content-Encoding HTTP header value, if set. See Also: "https://developers.google.com/storage/docs/reference-headers#contentencoding"

Returns
TypeDescription
com.google.common.base.Optional<String>

etag()

public abstract Optional<String> etag()

Returns HTTP etag hash of object contents. See Also: "https://developers.google.com/storage/docs/hashes-etags"

Returns
TypeDescription
com.google.common.base.Optional<String>

mimeType()

public abstract Optional<String> mimeType()

Returns mime type (e.g. text/plain), if set. See Also: "http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types"

Returns
TypeDescription
com.google.common.base.Optional<String>

userMetadata()

public abstract Map<String,String> userMetadata()
Returns
TypeDescription
Map<String,String>