Interface CloudStorageFileAttributes
-
- All Superinterfaces:
BasicFileAttributes
public interface CloudStorageFileAttributes extends BasicFileAttributes
Interface for attributes on a Cloud Storage file or pseudo-directory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.base.Optional<List<com.google.cloud.storage.Acl>>
acl()
Returns access control list.com.google.common.base.Optional<String>
cacheControl()
ReturnsCache-Control
HTTP header value, if set.com.google.common.base.Optional<String>
contentDisposition()
ReturnsContent-Disposition
HTTP header value, if set.com.google.common.base.Optional<String>
contentEncoding()
ReturnsContent-Encoding
HTTP header value, if set.com.google.common.base.Optional<String>
etag()
Returns HTTP etag hash of object contents.com.google.common.base.Optional<String>
mimeType()
Returns mime type (e.g.Map<String,String>
userMetadata()
Returns user-specified metadata.-
Methods inherited from interface java.nio.file.attribute.BasicFileAttributes
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size
-
-
-
-
Method Detail
-
etag
com.google.common.base.Optional<String> etag()
Returns HTTP etag hash of object contents.- See Also:
- "https://developers.google.com/storage/docs/hashes-etags"
-
mimeType
com.google.common.base.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"
-
acl
com.google.common.base.Optional<List<com.google.cloud.storage.Acl>> acl()
Returns access control list.- See Also:
- "https://developers.google.com/storage/docs/reference-headers#acl"
-
cacheControl
com.google.common.base.Optional<String> cacheControl()
ReturnsCache-Control
HTTP header value, if set.- See Also:
- "https://developers.google.com/storage/docs/reference-headers#cachecontrol"
-
contentEncoding
com.google.common.base.Optional<String> contentEncoding()
ReturnsContent-Encoding
HTTP header value, if set.- See Also:
- "https://developers.google.com/storage/docs/reference-headers#contentencoding"
-
contentDisposition
com.google.common.base.Optional<String> contentDisposition()
ReturnsContent-Disposition
HTTP header value, if set.- See Also:
- "https://developers.google.com/storage/docs/reference-headers#contentdisposition"
-
-