Package software.amazon.nio.spi.s3.util
Class S3FileSystemInfo
- java.lang.Object
-
- software.amazon.nio.spi.s3.util.S3FileSystemInfo
-
- Direct Known Subclasses:
S3XFileSystemInfo
public class S3FileSystemInfo extends java.lang.ObjectPopulates fields with information extracted by the S3 URI provided. This implementation is for standard AWS buckets as described in section "Accessing a bucket using S3://" here
It also computes the file system key that can be used to identify a runtime instance of a S3FileSystem (for caching purposes for example). In this implementation the key is the bucket name (which is unique in the AWS S3 namespace).
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringaccessKeyprotected java.lang.StringaccessSecretprotected java.lang.Stringbucketprotected java.lang.Stringendpointprotected java.lang.Stringkey
-
Constructor Summary
Constructors Modifier Constructor Description protectedS3FileSystemInfo()S3FileSystemInfo(java.net.URI uri)Creates a new instance and populates it with key and bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaccessKey()java.lang.StringaccessSecret()java.lang.Stringbucket()java.lang.Stringendpoint()java.lang.Stringkey()
-
-
-
Constructor Detail
-
S3FileSystemInfo
protected S3FileSystemInfo()
-
S3FileSystemInfo
public S3FileSystemInfo(java.net.URI uri) throws java.lang.IllegalArgumentExceptionCreates a new instance and populates it with key and bucket. The name of the bucket must follow AWS S3 bucket naming rules)- Parameters:
uri- a S3 URI- Throws:
java.lang.IllegalArgumentException- if URI contains invalid components (e.g. an invalid bucket name)
-
-