summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@simon.local>2012-01-20 15:10:37 (GMT)
committer LISA STILLWELL <lisa@simon.local>2012-01-20 15:10:37 (GMT)
commit716dad793608a59c21f8c9fe50dcfe9b0dd816ff (patch)
tree53a1b4dde83b53fbc856baefe61323fc33ceadca /idrop-lite
parenta905fe868ba3e500d617b014587781e56121b73b (diff)
downloadQCG-Data-716dad793608a59c21f8c9fe50dcfe9b0dd816ff.zip
QCG-Data-716dad793608a59c21f8c9fe50dcfe9b0dd816ff.tar.gz
QCG-Data-716dad793608a59c21f8c9fe50dcfe9b0dd816ff.tar.bz2
[#550] added to support new file type to upload - import from url
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadDataObj.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadDataObj.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadDataObj.java
new file mode 100644
index 0000000..dfe6a79
--- /dev/null
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/UploadDataObj.java
@@ -0,0 +1,53 @@
+package org.irods.jargon.idrop.lite;
+
+import java.io.File;
+
+public class UploadDataObj {
+
+ private File sourceFile = null;
+ private String sourceFileName = null;
+ Boolean isURL = false;
+
+ public UploadDataObj(File file) {
+ this.sourceFile = file;
+ }
+
+ public UploadDataObj(File file, Boolean isURL) {
+ this.sourceFile = file;
+ this.isURL = isURL;
+ }
+
+ public UploadDataObj(String file) {
+ this.sourceFileName = file;
+ }
+
+ public UploadDataObj(String file, Boolean isURL) {
+ this.sourceFileName = file;
+ this.isURL = isURL;
+ }
+
+ public void setFile(File file) {
+ this.sourceFile = file;
+ }
+
+ public File getFile() {
+ return this.sourceFile;
+ }
+
+ public void setFileName(String name) {
+ this.sourceFileName = name;
+ }
+
+ public String getFileName() {
+ return this.sourceFileName;
+ }
+
+ public Boolean isURL() {
+ return this.isURL;
+ }
+
+ public void isURL(Boolean flag) {
+ this.isURL = flag;
+ }
+
+}