wt.clients.util
Class FileUpload
java.lang.Object
wt.clients.util.FileUpload
- public class FileUpload
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_CLASS
private static final String SERVER_CLASS
properties
private static WTProperties properties
DEBUG
private static boolean DEBUG
MAXRETRY
private static int MAXRETRY
fileAccess
private FileAccess fileAccess
chunkSize
private int chunkSize
numChunks
private int numChunks
file
private File file
remoteFilename
private String remoteFilename
trxStarted
private boolean trxStarted
cancel
private boolean cancel
uploadListener
private MultiPartPostListener uploadListener
FileUpload
FileUpload(String filename)
FileUpload
FileUpload(File file)
setListener
public void setListener(MultiPartPostListener listener)
setRemoteFilename
void setRemoteFilename(String remoteFilename)
getRemoteFilename
String getRemoteFilename()
setChunkSize
void setChunkSize(int chunkSize)
getChunkSize
int getChunkSize()
getNumChunks
int getNumChunks()
startUpload
void startUpload()
throws WTSecurityException,
IOException
- Start upload of file to server
- Throws:
WTSecurityException
IOException
setCancel
public void setCancel(boolean cancel)
- Set cancel flag checked during upload of file.
removeFile
void removeFile()
throws Exception
- Remove file from server.
- Throws:
Exception
main
public static void main(String[] argv)
throws Exception
- Throws:
Exception