@ Override public InputStream download ( String path ) { try { S3Object s3Object = s3Client . getObject ( new GetObjectRequest ( bucketName , path ) ) ; return s3Object . getObjectContent ( ) ; } catch ( SdkClientException e ) { String msg = "Error communicating with S3" ; logger . error ( msg , e ) ; throw new ApplicationException ( ApplicationException . Code . BACKEND_ERROR , msg , e ) ; } }
Downloads the payload stored in the s3 object .