Package org.jets3t.service.impl.rest
Class CloudFrontXmlResponsesSaxParser
java.lang.Object
org.jets3t.service.impl.rest.CloudFrontXmlResponsesSaxParser
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
Nested ClassesModifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
-
Constructor Summary
ConstructorsConstructorDescriptionCloudFrontXmlResponsesSaxParser
(Jets3tProperties properties) Constructs the XML SAX parser. -
Method Summary
Modifier and TypeMethodDescriptionparseDistributionConfigResponse
(InputStream inputStream) parseDistributionListResponse
(InputStream inputStream) Parses a ListBucket response XML document from an input stream.parseDistributionResponse
(InputStream inputStream) parseErrorResponse
(InputStream inputStream) parseInvalidationListResponse
(InputStream inputStream) parseInvalidationResponse
(InputStream inputStream) parseOriginAccessIdentity
(InputStream inputStream) parseOriginAccessIdentityConfig
(InputStream inputStream) parseOriginAccessIdentityListResponse
(InputStream inputStream)
-
Constructor Details
-
CloudFrontXmlResponsesSaxParser
Constructs the XML SAX parser.- Parameters:
properties
- the JetS3t properties that will be applied when parsing XML documents.- Throws:
S3ServiceException
ServiceException
-
-
Method Details
-
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
-