com.amazonaws.services.s3
Class AmazonS3URI
java.lang.Object
com.amazonaws.services.s3.AmazonS3URI
public class AmazonS3URI
- extends Object
A URI wrapper that can parse out information about an S3 URI.
Constructor Summary |
AmazonS3URI(String str)
Creates a new AmazonS3URI by parsing the given string. |
AmazonS3URI(URI uri)
Creates a new AmazonS3URI by wrapping the given URI . |
AmazonS3URI
public AmazonS3URI(String str)
- Creates a new AmazonS3URI by parsing the given string.
- Parameters:
str
- the URI to parse.
AmazonS3URI
public AmazonS3URI(URI uri)
- Creates a new AmazonS3URI by wrapping the given
URI
.
- Parameters:
uri
- the URI to wrap
getURI
public URI getURI()
- Returns:
- the S3 URI being parsed
isPathStyle
public boolean isPathStyle()
- Returns:
- true if the URI contains the bucket in the path, false if it
contains the bucket in the authority
getBucket
public String getBucket()
- Returns:
- the bucket name parsed from the URI (or null if no bucket
specified)
getKey
public String getKey()
- Returns:
- the key parsed from the URI (or null if no key specified)
getRegion
public String getRegion()
- Returns:
- the region parsed from the URI (or null if no region specified)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2016. All rights reserved.