You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by no...@apache.org on 2009/07/21 16:37:39 UTC
svn commit: r796323 -
/labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java
Author: norman
Date: Tue Jul 21 14:37:38 2009
New Revision: 796323
URL: http://svn.apache.org/viewvc?rev=796323&view=rev
Log:
Missing license header
Use logger
Modified:
labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java
Modified: labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java?rev=796323&r1=796322&r2=796323&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/server/servlet/DownloadAttachmentServlet.java Tue Jul 21 14:37:38 2009
@@ -1,3 +1,22 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one *
+ * or more contributor license agreements. See the NOTICE file *
+ * distributed with this work for additional information *
+ * regarding copyright ownership. The ASF licenses this file *
+ * to you 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.hupa.server.servlet;
import java.io.IOException;
@@ -71,12 +90,8 @@
Object content = m.getContent();
handleMultiPart(out, content,attachmentName);
- } catch (MessagingException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ } catch (Exception e) {
+ logger.error("Error while downloading attachment " + attachmentName +" of message "+ messageUUID + " for user " + user );
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org