title: How to get an S3 object using a URL and the 2.x Java SDK?
body: <p>I'm using the 2.x AWS Java SDK (<a href="https://docs.aws.amazon.com/sdk-for-java/index.html" rel="noreferrer">https://docs.aws.amazon.com/sdk-for-java/index.html</a>).  I need to get an S3 object using the friendly HTTP URL (e.g. <code>https://bucket.s3.region.amazonaws.com/key</code> or <code>https://s3.region.amazonaws.com/bucket/key</code>).</p>
  
  <p>The old SDK included an <code>AmazonS3URI</code> class that could parse a URL and extract the bucket and key.  Does the 2.x SDK include similar functionality, or should I use Java's URI class to parse the URL?</p>