diff --git a/src/main/java/org/gcube/portlets/user/workspace/server/DownloadPublicLinkServlet.java b/src/main/java/org/gcube/portlets/user/workspace/server/DownloadPublicLinkServlet.java index add3093..39d500e 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/server/DownloadPublicLinkServlet.java +++ b/src/main/java/org/gcube/portlets/user/workspace/server/DownloadPublicLinkServlet.java @@ -3,14 +3,10 @@ */ package org.gcube.portlets.user.workspace.server; -import java.io.BufferedInputStream; import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; -import java.io.OutputStream; -import java.io.StringReader; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; @@ -21,35 +17,17 @@ import org.apache.commons.io.IOUtils; import org.gcube.common.core.scope.GCUBEScope; import org.gcube.common.core.utils.logging.GCUBELog; import org.gcube.portlets.user.homelibrary.home.HomeLibrary; -import org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException; import org.gcube.portlets.user.homelibrary.home.workspace.Workspace; -import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder; import org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceItem; -import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException; -import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ExternalResourcePluginNotFoundException; -import org.gcube.portlets.user.homelibrary.home.workspace.exceptions.ItemNotFoundException; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.FolderItem; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.AquaMapsItem; import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalFile; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalImage; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalResourceLink; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ExternalUrl; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Query; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.Report; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ReportTemplate; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Document; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.gcube.Metadata; -import org.gcube.portlets.user.homelibrary.home.workspace.folder.items.ts.TimeSeries; -import org.gcube.portlets.user.homelibrary.util.Extensions; -import org.gcube.portlets.user.homelibrary.util.MimeTypeUtil; -import org.gcube.portlets.user.homelibrary.util.zip.ZipUtil; -import org.gcube.portlets.user.workspace.client.ConstantsExplorer; import org.gcube.portlets.user.workspace.server.property.PortalUrlGroupGatewayProperty; -import org.gcube.portlets.user.workspace.server.util.WsUtil; import org.gcube.portlets.user.workspace.shared.HandlerResultMessage; + /** - * @author Federico De Faveri defaveri@isti.cnr.it + * + * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it + * @Jul 1, 2013 * */ public class DownloadPublicLinkServlet extends HttpServlet{ @@ -64,7 +42,7 @@ public class DownloadPublicLinkServlet extends HttpServlet{ @Override public void init() throws ServletException { super.init(); - logger.trace("Workspace DownloadServlet ready."); + logger.trace("Workspace DownloadPublicLinkServlet ready."); } public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {