wt.clients.util
Class FileUpload.Server
java.lang.Object
wt.clients.util.FileUpload.Server
- All Implemented Interfaces:
- RemoteAccess
- Enclosing class:
- FileUpload
- public static class FileUpload.Server
- extends Object
- implements RemoteAccess
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uploadDir
private static final File uploadDir
caseSensitive
private static final boolean caseSensitive
DELAYED_DELETION_INTERVAL
private static final long DELAYED_DELETION_INTERVAL
MAX_DELETION_RETRIES
private static final int MAX_DELETION_RETRIES
lock
private static final Object lock
deletionThread
private static Thread deletionThread
filesToDeleteToAttemptsMap
private static Map filesToDeleteToAttemptsMap
FileUpload.Server
public FileUpload.Server()
getUploadDir
public static String getUploadDir()
uploadChunk
public static String uploadChunk(String filename,
long offset,
byte[] buf)
throws IOException
- Throws:
IOException
removeFile
public static void removeFile(String filename)
doDelayedDelete
private static void doDelayedDelete(File file)
retryFailedDeletions
private static void retryFailedDeletions()
- To be called only from deletionThread
checkAccess
private static void checkAccess(File file)