Class XmlResponsesSaxParser.ListBucketHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jets3t.service.impl.rest.DefaultXmlHandler
org.jets3t.service.impl.rest.XmlResponsesSaxParser.ListBucketHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
XmlResponsesSaxParser

public class XmlResponsesSaxParser.ListBucketHandler extends DefaultXmlHandler
Handler for ListBucket response XML documents. The document is parsed into S3Objects available via the getObjects() method.
  • Constructor Details

    • ListBucketHandler

      public ListBucketHandler()
  • Method Details

    • getMarkerForNextListing

      public String getMarkerForNextListing()
      If the listing is truncated this method will return the marker that should be used in subsequent bucket list calls to complete the listing.
      Returns:
      null if the listing is not truncated, otherwise the next marker if it's available or the last object key seen if the next marker isn't available.
    • isListingTruncated

      public boolean isListingTruncated()
      Returns:
      true if the listing document was truncated, and therefore only contained a subset of the available S3 objects.
    • getObjects

      public StorageObject[] getObjects()
      Returns:
      the S3 objects contained in the listing.
    • getCommonPrefixes

      public String[] getCommonPrefixes()
    • getRequestPrefix

      public String getRequestPrefix()
    • getRequestMarker

      public String getRequestMarker()
    • getNextMarker

      public String getNextMarker()
    • getRequestMaxKeys

      public long getRequestMaxKeys()
    • startElement

      public void startElement(String name)
      Overrides:
      startElement in class DefaultXmlHandler
    • endElement

      public void endElement(String name, String elementText)
      Overrides:
      endElement in class DefaultXmlHandler