Package org.jets3t.service.impl.rest
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 intoS3Object
s available via thegetObjects()
method.
-
-
Constructor Summary
Constructors Constructor Description ListBucketHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endElement(String name, String elementText)
String[]
getCommonPrefixes()
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.String
getNextMarker()
StorageObject[]
getObjects()
String
getRequestMarker()
long
getRequestMaxKeys()
String
getRequestPrefix()
boolean
isListingTruncated()
void
startElement(String name)
-
Methods inherited from class org.jets3t.service.impl.rest.DefaultXmlHandler
characters, endDocument, endElement, startDocument, startElement, startElement
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
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 classDefaultXmlHandler
-
endElement
public void endElement(String name, String elementText)
- Overrides:
endElement
in classDefaultXmlHandler
-
-