示例#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;
 }