]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - eclipse/rap/org.eclipse.rwt.widgets.upload/src/org/eclipse/rwt/widgets/internal/uploadkit/IUploadAdapter.java
Introduce file upload widget
[lgpl/argeo-commons.git] / eclipse / rap / org.eclipse.rwt.widgets.upload / src / org / eclipse / rwt / widgets / internal / uploadkit / IUploadAdapter.java
diff --git a/eclipse/rap/org.eclipse.rwt.widgets.upload/src/org/eclipse/rwt/widgets/internal/uploadkit/IUploadAdapter.java b/eclipse/rap/org.eclipse.rwt.widgets.upload/src/org/eclipse/rwt/widgets/internal/uploadkit/IUploadAdapter.java
new file mode 100644 (file)
index 0000000..f33945c
--- /dev/null
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2006 Innoopract Informationssysteme GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * 
+ * Contributors:
+ *     Innoopract Informationssysteme GmbH - initial API and implementation
+ ******************************************************************************/
+
+package org.eclipse.rwt.widgets.internal.uploadkit;
+
+import org.eclipse.rwt.widgets.upload.servlet.FileUploadStorageItem;
+
+public interface IUploadAdapter {
+  boolean performUpload();
+  int getFlags();
+  void setPath( final String path );
+  void setLastFileUploaded( final String lastFileUploaded );
+  String getServletPath();
+  boolean isResetUpload();
+  void setResetUpload(boolean resetUpload);
+  public long getBytesRead();
+  public long getContentLength();
+  FileUploadStorageItem getStorageItem();
+}