title: Iterating and retrieving metadata of all objects in Amazon S3
body: <p>I am using AWS Java SDK to interact with S3. I want to iterate through all the objects in the storage and retrieve metadata of each object. I can iterate through the objects using lists as:</p>
  
  <pre><code>ObjectListing  list= s3client.listObjects("bucket name");
  </code></pre>
  
  <p>But I am able to retrieve only summaries through the object in the list. Instead of summary I need metadata of each object, like the one provided by <code>getObjectMetadata()</code> method in S3Object class. How do I get that?</p>