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/22 15:29:46 UTC
svn commit: r796715 - in /labs/hupa/src/main/java/org/apache/hupa/server:
guice/DispatchServletModule.java guice/ServerModul.java
servlet/UploadAttachmentServlet.java
Author: norman
Date: Wed Jul 22 13:29:46 2009
New Revision: 796715
URL: http://svn.apache.org/viewvc?rev=796715&view=rev
Log:
work in progress for sending email
Added:
labs/hupa/src/main/java/org/apache/hupa/server/servlet/UploadAttachmentServlet.java
Modified:
labs/hupa/src/main/java/org/apache/hupa/server/guice/DispatchServletModule.java
labs/hupa/src/main/java/org/apache/hupa/server/guice/ServerModul.java
Modified: labs/hupa/src/main/java/org/apache/hupa/server/guice/DispatchServletModule.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/server/guice/DispatchServletModule.java?rev=796715&r1=796714&r2=796715&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/server/guice/DispatchServletModule.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/server/guice/DispatchServletModule.java Wed Jul 22 13:29:46 2009
@@ -21,6 +21,7 @@
import org.apache.hupa.server.servlet.DownloadAttachmentServlet;
+import org.apache.hupa.server.servlet.UploadAttachmentServlet;
import net.customware.gwt.dispatch.server.service.DispatchServiceServlet;
@@ -32,6 +33,7 @@
public void configureServlets() {
serve( "/hupa/dispatch" ).with(DispatchServiceServlet.class );
serve("/hupa/downloadAttachmentServlet").with(DownloadAttachmentServlet.class);
+ serve("/hupa/uploadAttachmentServlet").with(UploadAttachmentServlet.class);
}
Modified: labs/hupa/src/main/java/org/apache/hupa/server/guice/ServerModul.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/server/guice/ServerModul.java?rev=796715&r1=796714&r2=796715&view=diff
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/server/guice/ServerModul.java (original)
+++ labs/hupa/src/main/java/org/apache/hupa/server/guice/ServerModul.java Wed Jul 22 13:29:46 2009
@@ -31,6 +31,7 @@
import org.apache.hupa.server.LogoutUserHandler;
import org.apache.hupa.server.NoopHandler;
import org.apache.hupa.server.servlet.DownloadAttachmentServlet;
+import org.apache.hupa.server.servlet.UploadAttachmentServlet;
import com.google.inject.Singleton;
@@ -56,5 +57,6 @@
bind(IMAPStoreCache.class).in(Singleton.class);
bind(Log.class).toProvider(LogProvider.class).in(Singleton.class);
bind(DownloadAttachmentServlet.class).in(Singleton.class);
+ bind(UploadAttachmentServlet.class).in(Singleton.class);
}
}
Added: labs/hupa/src/main/java/org/apache/hupa/server/servlet/UploadAttachmentServlet.java
URL: http://svn.apache.org/viewvc/labs/hupa/src/main/java/org/apache/hupa/server/servlet/UploadAttachmentServlet.java?rev=796715&view=auto
==============================================================================
--- labs/hupa/src/main/java/org/apache/hupa/server/servlet/UploadAttachmentServlet.java (added)
+++ labs/hupa/src/main/java/org/apache/hupa/server/servlet/UploadAttachmentServlet.java Wed Jul 22 13:29:46 2009
@@ -0,0 +1,36 @@
+/****************************************************************
+ * 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;
+import java.util.Vector;
+
+import org.apache.commons.fileupload.FileItem;
+
+import gwtupload.server.UploadAction;
+
+public class UploadAttachmentServlet extends UploadAction{
+
+ @Override
+ public String doAction(Vector<FileItem> sessionFiles) throws IOException {
+ return null;
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org