Interface S3ArtifactValidator
-
public interface S3ArtifactValidator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamvalidate(com.amazonaws.services.s3.AmazonS3 amazonS3, com.amazonaws.services.s3.model.S3Object s3obj)Validate an S3 artifact.
-
-
-
Method Detail
-
validate
java.io.InputStream validate(com.amazonaws.services.s3.AmazonS3 amazonS3, com.amazonaws.services.s3.model.S3Object s3obj)Validate an S3 artifact. Throw an exception if invalid.- Parameters:
amazonS3- the S3 client used to retrieve the artifact to validates3Obj- the artifact to validate. It is the implementation's responsibility to either return the input stream from this object to the caller, or close it.- Returns:
- the validated S3 artifact (e.g. s3obj.getObjectContent()). It it the caller's responsibility to close this stream as soon as possible.
-
-