@ComponentProfile(summary="List of files based on S3 key", since="3.9.1") public class ListOperation extends S3OperationImpl
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 |
---|
ListOperation() |
Modifier and Type | Method and Description |
---|---|
void |
execute(ClientWrapper wrapper,
AdaptrisMessage msg) |
RemoteBlobFilter |
getFilter()
Specify any additional filtering you wish to perform on the list.
|
java.lang.Integer |
getMaxKeys()
Specify max number of keys to be returned per page when paging through results.
|
BlobListRenderer |
getOutputStyle()
Specify the output style.
|
java.lang.Boolean |
getPageResults()
Deprecated.
since 3.10.2 due to interface changes; paging results is not explicitly configurable and will be ignored.
|
java.lang.String |
getPrefix()
Specific the prefix for use with the List operation.
|
void |
prepare() |
void |
setFilter(RemoteBlobFilter filter)
Specify any additional filtering you wish to perform on the list.
|
void |
setMaxKeys(java.lang.Integer maxKeys)
Specify max number of keys to be returned per page when paging through results.
|
void |
setOutputStyle(BlobListRenderer outputStyle)
Specify the output style.
|
void |
setPageResults(java.lang.Boolean pageResults)
Deprecated.
since 3.10.2 due to interface changes; paging results is not explicitly configurable and will be ignored.
|
void |
setPrefix(java.lang.String prefix)
Specific the prefix for use with the List operation.
|
ListOperation |
withFilter(RemoteBlobFilter filter) |
ListOperation |
withMaxKeys(java.lang.Integer maxKeys) |
ListOperation |
withOutputStyle(BlobListRenderer render) |
ListOperation |
withPrefix(java.lang.String prefix) |
getBucket, getBucketName, getKey, mustHaveEither, resolve, s3Bucket, setBucket, setBucketName, setKey, withBucket, withBucketName, withKey
public void prepare() throws CoreException
prepare
in interface ComponentLifecycleExtension
prepare
in class S3OperationImpl
CoreException
public void execute(ClientWrapper wrapper, AdaptrisMessage msg) throws java.lang.Exception
java.lang.Exception
public ListOperation withOutputStyle(BlobListRenderer render)
public ListOperation withFilter(RemoteBlobFilter filter)
public ListOperation withMaxKeys(java.lang.Integer maxKeys)
public ListOperation withPrefix(java.lang.String prefix)
public java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
public RemoteBlobFilter getFilter()
public void setFilter(RemoteBlobFilter filter)
public BlobListRenderer getOutputStyle()
If left as null, then only the names of the files will be emitted. You may require additional optional components to utilise other rendering styles.
public void setOutputStyle(BlobListRenderer outputStyle)
If left as null, then only the names of the files will be emitted. You may require additional optional components to utilise other rendering styles.
@Deprecated public java.lang.Boolean getPageResults()
If set to true will return all results, as oppose to the first n, where n is max-keys (AWS default: 1000). Default is false for backwards compatibility reasons.
@Deprecated public void setPageResults(java.lang.Boolean pageResults)
If set to true will return all results, as oppose to the first n, where n is max-keys (AWS default: 1000). Default is false for backwards compatibility reasons.
public java.lang.Integer getMaxKeys()
public void setMaxKeys(java.lang.Integer maxKeys)