How to parse (parse) S3URI with AmazonS3URI – Java

How to parse (parse) S3URI with AmazonS3URI – Java

The S3URI is parsed in the com.amazonaws.services.services.s3.AmazonS3URI class. For clarity, the AmazonS3URI argument is specified as a port as follows.

AmazonS3URI url =
  new AmazonS3URI("s3://www.saba6seimenjo.com:8080/var/db/test.json");
メソッド
url.getURI().getScheme() s3
url.getBucket() www.saba6seimenjo.com:8080
url.getHost(); www.saba6seimenjo.com
url.getKey() /var/db/test.json
url.getURI().getPath() /var/db/test.json
url.getURI().getPort() 8080

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL