class AmazonS3URI extends AnyRef
A URI wrapper that can parse out information about an S3 URI.
- Alphabetic
- By Inheritance
- AmazonS3URI
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AmazonS3URI(uri: URI)
Creates a new AmazonS3URI by wrapping the given
URI
.Creates a new AmazonS3URI by wrapping the given
URI
.- uri
the URI to wrap
-
new
AmazonS3URI(str: String, urlEncode: Boolean)
Creates a new AmazonS3URI by parsing the given string.
Creates a new AmazonS3URI by parsing the given string. String will optionally be URL encoded before generating the URI. URL encoding is recommended if you work with bucket names or object keys with special characters. This can be disabled if you pre-encode URI strings before passing them to this class.
- str
the URI to parse.
- urlEncode
true if string should be URL encoded
- new AmazonS3URI(str: String)
Value Members
-
def
equals(o: Any): Boolean
- Definition Classes
- AmazonS3URI → AnyRef → Any
- Annotations
- @Override()
-
def
getBucket(): String
- returns
the bucket name parsed from the URI (or null if no bucket specified)
-
def
getKey(): String
- returns
the key parsed from the URI (or null if no key specified)
-
def
getRegion(): String
- returns
the region parsed from the URI (or null if no region specified)
-
def
getURI(): URI
- returns
the S3 URI being parsed
-
def
getVersionId(): String
- returns
the version id parsed from the URI (or null if no version specified)
-
def
hashCode(): Int
- Definition Classes
- AmazonS3URI → AnyRef → Any
- Annotations
- @Override()
-
def
isPathStyle(): Boolean
- returns
true if the URI contains the bucket in the path, false if it contains the bucket in the authority
-
def
toString(): String
- Definition Classes
- AmazonS3URI → AnyRef → Any
- Annotations
- @Override()