@ComponentProfile(summary="Check a file exists in S3, throws exception if it doesn\'t", since="3.8.4") public class CheckFileExistsOperation extends ObjectOperationImpl
Note that this component will throw an exception if the file does not exist possibly cascading
into a failed message; you probably want to use something like
ExceptionHandlingServiceWrapper
or similar if a missing S3 object is part of your
expected integration pipeline.
In the adapter configuration file this class is aliased as amazon-s3-check-file-exists which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
CheckFileExistsOperation() |
Modifier and Type | Method and Description |
---|---|
void |
execute(ClientWrapper wrapper,
AdaptrisMessage msg) |
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectName
getBucket, getBucketName, getKey, mustHaveEither, resolve, s3Bucket, setBucket, setBucketName, setKey, withBucket, withBucketName, withKey
public void execute(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
java.lang.Exception