Package org.jets3t.service.impl.rest.CloudFrontXmlResponsesSaxParser

Examples of org.jets3t.service.impl.rest.CloudFrontXmlResponsesSaxParser.ListDistributionListHandler


            boolean incompleteListing = true;
            do {
                HttpMethod httpMethod = new GetMethod(ENDPOINT + VERSION + "/distribution");           
                performRestRequest(httpMethod, 200);

                ListDistributionListHandler handler = (new CloudFrontXmlResponsesSaxParser())
                    .parseDistributionListResponse(httpMethod.getResponseBodyAsStream());
                distributions.addAll(handler.getDistributions());
               
                incompleteListing = handler.isTruncated();
                // TODO: Under what circumstances are IsTruncated and Marker elements used?          
            } while (incompleteListing);
           
            return (Distribution[]) distributions.toArray(new Distribution[distributions.size()]);           
        } catch (CloudFrontServiceException e) {
View Full Code Here

TOP

Related Classes of org.jets3t.service.impl.rest.CloudFrontXmlResponsesSaxParser.ListDistributionListHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.