Package org.jets3t.service.impl.rest
Class CloudFrontXmlResponsesSaxParser
- java.lang.Object
-
- org.jets3t.service.impl.rest.CloudFrontXmlResponsesSaxParser
-
public class CloudFrontXmlResponsesSaxParser extends Object
XML Sax parser to read XML documents returned by the CloudFront service via the REST interface, and convert these documents into JetS3t objects.- Author:
- James Murty
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CloudFrontXmlResponsesSaxParser(Jets3tProperties properties)
Constructs the XML SAX parser.
-
Method Summary
-
-
-
Constructor Detail
-
CloudFrontXmlResponsesSaxParser
public CloudFrontXmlResponsesSaxParser(Jets3tProperties properties) throws ServiceException
Constructs the XML SAX parser.- Parameters:
properties
- the JetS3t properties that will be applied when parsing XML documents.- Throws:
S3ServiceException
ServiceException
-
-
Method Detail
-
getProperties
public Jets3tProperties getProperties()
-
parseDistributionListResponse
public CloudFrontXmlResponsesSaxParser.DistributionListHandler parseDistributionListResponse(InputStream inputStream) throws CloudFrontServiceException
Parses a ListBucket response XML document from an input stream.- Parameters:
inputStream
- XML data input stream.- Returns:
- the XML handler object populated with data parsed from the XML stream.
- Throws:
CloudFrontServiceException
-
parseDistributionResponse
public CloudFrontXmlResponsesSaxParser.DistributionHandler parseDistributionResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseDistributionConfigResponse
public CloudFrontXmlResponsesSaxParser.DistributionConfigHandler parseDistributionConfigResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseOriginAccessIdentity
public CloudFrontXmlResponsesSaxParser.OriginAccessIdentityHandler parseOriginAccessIdentity(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseOriginAccessIdentityConfig
public CloudFrontXmlResponsesSaxParser.OriginAccessIdentityConfigHandler parseOriginAccessIdentityConfig(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseOriginAccessIdentityListResponse
public CloudFrontXmlResponsesSaxParser.OriginAccessIdentityListHandler parseOriginAccessIdentityListResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseInvalidationResponse
public CloudFrontXmlResponsesSaxParser.InvalidationHandler parseInvalidationResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseInvalidationListResponse
public CloudFrontXmlResponsesSaxParser.InvalidationListHandler parseInvalidationListResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
parseErrorResponse
public CloudFrontXmlResponsesSaxParser.ErrorHandler parseErrorResponse(InputStream inputStream) throws CloudFrontServiceException
- Throws:
CloudFrontServiceException
-
-