386387388389390391392393394
protected UploadStatus createUpload(String uploadId) { if (uploads == null) { uploads = new HashMap(); } UploadStatus status = new UploadStatus(); uploads.put(uploadId, status); return status; }
403404405406407408409410411412413
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(); } } }