예제 #1
0
 protected void pruneUploads() {
   if (uploads == null || uploads.isEmpty()) return;
   for (Iterator it = uploads.values().iterator(); it.hasNext(); ) {
     UploadStatus status = (UploadStatus) it.next();
     if (status.isDisposable()) {
       it.remove();
     }
   }
 }
예제 #2
0
 protected UploadStatus getUpload(String uploadId) {
   if (uploads == null) {
     return null;
   } else {
     return (UploadStatus) uploads.get(uploadId);
   }
 }
예제 #3
0
 protected UploadStatus createUpload(String uploadId) {
   if (uploads == null) {
     uploads = new HashMap();
   }
   UploadStatus status = new UploadStatus();
   uploads.put(uploadId, status);
   return status;
 }