/** * @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); } }
.parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation();
.parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation();