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