Sorry about that, forgot to svn add the new classes (DownloadInfo and DownloadMonitor) before generating the patch. Attaching the needed classes to this email (they're small) plus I will attach a new patch to GERONIMO-1705 for accountability.
Best wishes, Paul On 3/27/06, Jeff Genender (JIRA) <[email protected]> wrote: > [ > http://issues.apache.org/jira/browse/GERONIMO-1705?page=comments#action_12372016 > ] > > Jeff Genender commented on GERONIMO-1705: > ----------------------------------------- > > This doesn't compile. It refers to DownloadInfo (line 120 in > DriverDownloader.java) and this class is knowhere to be found. > > > Use AJAX to provide for a progress bar when downloading a JDBC jar > > ------------------------------------------------------------------ > > > > Key: GERONIMO-1705 > > URL: http://issues.apache.org/jira/browse/GERONIMO-1705 > > Project: Geronimo > > Type: Improvement > > Components: console > > Versions: 1.0 > > Reporter: Jeff Genender > > Attachments: GERONIMO-1705.patch, downloadProgress2.png > > > > Use AJAX to provide for a progress bar when downloading a JDBC jar for the > > Download Drivers portlet. As it stands, for people who have slower > > connections, it currently can make them think something is wrong with > > Geronimo because web page refresh takes too long. A progrss bar using AJAX > > can help keep the user up to date on the downloading progress. > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://issues.apache.org/jira/secure/Administrators.jspa > - > For more information on JIRA, see: > http://www.atlassian.com/software/jira > >
/** * * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.geronimo.console.databasemanager.wizard; public class DownloadInfo { public static final String DOWNLOAD_INFO_KEY = "downloadInfo"; private boolean downloadStarted = false; private boolean downloadFinished = false; private long bytesDownloaded = 0; private long totalBytes = -1; public DownloadInfo() { } public boolean isDownloadFinished() { return downloadFinished; } public void setDownloadFinished(boolean downloadFinished) { this.downloadFinished = downloadFinished; } public boolean isDownloadStarted() { return downloadStarted; } public void setDownloadStarted(boolean downloadStarted) { this.downloadStarted = downloadStarted; } public long getBytesDownloaded() { return bytesDownloaded; } public void setBytesDownloaded(long bytesDownloaded) { this.bytesDownloaded = bytesDownloaded; } public long getTotalBytes() { return totalBytes; } public void setTotalBytes(long totalBytes) { this.totalBytes = totalBytes; } }
/** * * Copyright 2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.geronimo.console.databasemanager.wizard; import javax.servlet.http.HttpSession; import uk.ltd.getahead.dwr.ExecutionContext; public class DownloadMonitor { public DownloadInfo getDownloadInfo() { HttpSession session = ExecutionContext.get().getSession(); if (session.getAttribute(DownloadInfo.DOWNLOAD_INFO_KEY) != null) { return (DownloadInfo) session.getAttribute(DownloadInfo.DOWNLOAD_INFO_KEY); } else { return new DownloadInfo(); } } }
