(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation();
(new CloudFrontXmlResponsesSaxParser(this.jets3tProperties)) .parseInvalidationResponse(response.getEntity().getContent()); return handler.getInvalidation();
/** * @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); } }
public InvalidationHandler parseInvalidationResponse( InputStream inputStream) throws CloudFrontServiceException { InvalidationHandler handler = new InvalidationHandler(xr); parseXmlInputStream(handler, inputStream); return handler; }
public InvalidationHandler parseInvalidationResponse( InputStream inputStream) throws CloudFrontServiceException { InvalidationHandler handler = new InvalidationHandler(xr); parseXmlInputStream(handler, inputStream); return handler; }