wt.clients.util
Class FileUpload.Server

java.lang.Object
  extended bywt.clients.util.FileUpload.Server
All Implemented Interfaces:
RemoteAccess
Enclosing class:
FileUpload

public static class FileUpload.Server
extends Object
implements RemoteAccess


Field Summary
private static boolean caseSensitive
           
private static long DELAYED_DELETION_INTERVAL
           
private static Thread deletionThread
           
private static Map filesToDeleteToAttemptsMap
           
private static Object lock
           
private static int MAX_DELETION_RETRIES
           
private static File uploadDir
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
FileUpload.Server()
           
 
Method Summary
private static void checkAccess(File file)
           
private static void doDelayedDelete(File file)
           
static String getUploadDir()
           
static void removeFile(String filename)
           
private static void retryFailedDeletions()
          To be called only from deletionThread
static String uploadChunk(String filename, long offset, byte[] buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FileUpload.Server

public FileUpload.Server()
Method Detail

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)