|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.build.aws.ant.AbstractS3Operation
org.springframework.build.aws.ant.AbstractS3DownloadOperation
org.springframework.build.aws.ant.Download
public class Download
A member of the S3 ANT task for dealing with Amazon S3 download behavior. This operation will use the credentials setup in its parent S3 task tag.
Field Summary | |
---|---|
private java.lang.String |
file
|
private java.util.List<org.apache.tools.ant.types.FileSet> |
fileSets
|
private java.io.File |
toDir
|
private java.io.File |
toFile
|
Fields inherited from class org.springframework.build.aws.ant.AbstractS3Operation |
---|
bucketName, project |
Constructor Summary | |
---|---|
Download()
|
Method Summary | |
---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Adds an optional fileSet to read files from. |
void |
execute(org.jets3t.service.S3Service service)
Execute an S3 operation |
void |
init()
Verify that required parameters have been set |
private void |
processFileToDir(org.jets3t.service.S3Service service)
|
private void |
processFileToFile(org.jets3t.service.S3Service service)
|
private void |
processSetToDir(org.jets3t.service.S3Service service)
|
void |
setFile(java.lang.String file)
Optional parameter that corresponds to the source object key in S3 |
void |
setToDir(java.io.File toDir)
Optional parameter that corresponds to the target object directory |
void |
setToFile(java.io.File toFile)
Required parameter that corresponds to the file to download |
Methods inherited from class org.springframework.build.aws.ant.AbstractS3DownloadOperation |
---|
getFile |
Methods inherited from class org.springframework.build.aws.ant.AbstractS3Operation |
---|
getOperationBucket, getS3SafeDirectory, getS3Scanner, setBucketName, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String file
private java.util.List<org.apache.tools.ant.types.FileSet> fileSets
private java.io.File toDir
private java.io.File toFile
Constructor Detail |
---|
public Download()
Method Detail |
---|
public void setFile(java.lang.String file)
file
- The source object key in S3public void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
fileSet
- The set of files to downloadpublic void setToDir(java.io.File toDir)
toDir
- The target object directorypublic void setToFile(java.io.File toFile)
toFile
- The file to downloadpublic void init()
public void execute(org.jets3t.service.S3Service service) throws org.jets3t.service.S3ServiceException, java.io.IOException
S3Operation
service
- The S3 Service to execute against
org.jets3t.service.S3ServiceException
java.io.IOException
private void processFileToFile(org.jets3t.service.S3Service service) throws org.jets3t.service.S3ServiceException, java.io.IOException
org.jets3t.service.S3ServiceException
java.io.IOException
private void processFileToDir(org.jets3t.service.S3Service service) throws org.jets3t.service.S3ServiceException, java.io.IOException
org.jets3t.service.S3ServiceException
java.io.IOException
private void processSetToDir(org.jets3t.service.S3Service service) throws org.jets3t.service.S3ServiceException, java.io.IOException
org.jets3t.service.S3ServiceException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |