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

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


            httpMethod.setEntity(new StringEntity(
                    builder.asString(null),
                    ContentType.create("text/xml", Constants.DEFAULT_ENCODING)));
            HttpResponse response = performRestRequest(httpMethod, 201);

            OriginAccessIdentityHandler handler =
                    (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties))
                            .parseOriginAccessIdentity(response.getEntity().getContent());

            return handler.getOriginAccessIdentity();
        }
        catch(CloudFrontServiceException e) {
            throw e;
        }
        catch(RuntimeException e) {
View Full Code Here


                ORIGIN_ACCESS_IDENTITY_URI_PATH + "/" + id);

        try {
            HttpResponse response = performRestRequest(httpMethod, 200);

            OriginAccessIdentityHandler handler =
                    (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties))
                            .parseOriginAccessIdentity(response.getEntity().getContent());
            return handler.getOriginAccessIdentity();
        }
        catch(CloudFrontServiceException e) {
            throw e;
        }
        catch(RuntimeException e) {
View Full Code Here

TOP

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

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.