Class GetFileAction
- java.lang.Object
-
- dk.netarkivet.common.distribute.bitrepository.action.getfile.GetFileAction
-
- All Implemented Interfaces:
ClientAction
public class GetFileAction extends java.lang.Object implements ClientAction
Action class to get files from Bitmag.
-
-
Constructor Summary
Constructors Constructor Description GetFileAction(org.bitrepository.access.getfile.GetFileClient client, java.lang.String collectionID, java.lang.String fileID, java.io.File targetFile)
Constructor to instantiate the get-file action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
actionIsSuccess()
java.lang.String
getInfo()
void
performAction()
Method to perform the implemented action
-
-
-
Constructor Detail
-
GetFileAction
public GetFileAction(org.bitrepository.access.getfile.GetFileClient client, java.lang.String collectionID, java.lang.String fileID, java.io.File targetFile)
Constructor to instantiate the get-file action- Parameters:
client
- The client to perform the action oncollectionID
- The ID of a known collection to operate onfileID
- The ID of an existing file in the collection to downloadtargetFile
- A File specifying a path to download the file to
-
-
Method Detail
-
actionIsSuccess
public boolean actionIsSuccess()
-
getInfo
public java.lang.String getInfo()
-
performAction
public void performAction()
Description copied from interface:ClientAction
Method to perform the implemented action- Specified by:
performAction
in interfaceClientAction
-
-