HttpResponse response = performRestRequest(httpMethod, 200); DistributionConfigHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionConfigResponse(response.getEntity().getContent());
/** * List the Origin Access Identities in a CloudFront account. * * @return List of {@link OriginAccessIdentity} objects describing the identities. * @throws CloudFrontServiceException */ public List<OriginAccessIdentity> getOriginAccessIdentityList() throws CloudFrontServiceException { if(log.isDebugEnabled()) { log.debug("Getting list of origin access identities"); } HttpGet httpMethod = new HttpGet(ENDPOINT + VERSION + ORIGIN_ACCESS_IDENTITY_URI_PATH); try { HttpResponse response = performRestRequest(httpMethod, 200); OriginAccessIdentityListHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentityListResponse(response.getEntity().getContent()); return handler.getOriginAccessIdentityList(); } catch(CloudFrontServiceException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new CloudFrontServiceException(e); } }
/** * List the Origin Access Identities in a CloudFront account. * * @return List of {@link OriginAccessIdentity} objects describing the identities. * @throws CloudFrontServiceException */ public List<OriginAccessIdentity> getOriginAccessIdentityList() throws CloudFrontServiceException { if(log.isDebugEnabled()) { log.debug("Getting list of origin access identities"); } HttpGet httpMethod = new HttpGet(ENDPOINT + VERSION + ORIGIN_ACCESS_IDENTITY_URI_PATH); try { HttpResponse response = performRestRequest(httpMethod, 200); OriginAccessIdentityListHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentityListResponse(response.getEntity().getContent()); return handler.getOriginAccessIdentityList(); } catch(CloudFrontServiceException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new CloudFrontServiceException(e); } }
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentityConfig(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentity(response.getEntity().getContent()); return handler.getOriginAccessIdentity();
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentity(response.getEntity().getContent()); return handler.getOriginAccessIdentity();
HttpResponse response = performRestRequest(httpMethod, 200); DistributionHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionResponse(response.getEntity().getContent());
HttpResponse response = performRestRequest(httpMethod, 200); DistributionHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionResponse(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentityConfig(response.getEntity().getContent());
HttpResponse response = performRestRequest(httpMethod, 200); DistributionConfigHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionConfigResponse(response.getEntity().getContent());
/** * @param distributionId The distribution's unique identifier. * @param invalidationId The identifier for the invalidation request * @return Details of a prior invalidation operation. * @throws CloudFrontServiceException exception */ public Invalidation getInvalidation(String distributionId, String invalidationId) throws CloudFrontServiceException { HttpGet httpMethod = new HttpGet(ENDPOINT + VERSION + "/distribution/" + distributionId + "/invalidation/" + invalidationId); try { HttpResponse response = performRestRequest(httpMethod, 200); InvalidationHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation(); } catch(CloudFrontServiceException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new CloudFrontServiceException(e); } }
/** * @param distributionId The distribution's unique identifier. * @param invalidationId The identifier for the invalidation request * @return Details of a prior invalidation operation. * @throws CloudFrontServiceException exception */ public Invalidation getInvalidation(String distributionId, String invalidationId) throws CloudFrontServiceException { HttpGet httpMethod = new HttpGet(ENDPOINT + VERSION + "/distribution/" + distributionId + "/invalidation/" + invalidationId); try { HttpResponse response = performRestRequest(httpMethod, 200); InvalidationHandler handler = (new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation(); } catch(CloudFrontServiceException e) { throw e; } catch(RuntimeException e) { throw e; } catch(Exception e) { throw new CloudFrontServiceException(e); } }
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationListResponse(response.getEntity().getContent()); return handler.getInvalidationList();
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionResponse(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationListResponse(response.getEntity().getContent()); return handler.getInvalidationList();
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionResponse(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentity(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseOriginAccessIdentity(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseDistributionConfigResponse(response.getEntity().getContent());
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation();