Interface CloudStorageFileAttributes (0.127.27)

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
com.google.common.base.Optional<String>

userMetadata()

public abstract Map<String,String> userMetadata()
Returns
Type Description
Map<String,String>