james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1418826 - /james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java
Date Sun, 09 Dec 2012 06:55:21 GMT
Author: eric
Date: Sun Dec  9 06:55:20 2012
New Revision: 1418826

URL: http://svn.apache.org/viewvc?rev=1418826&view=rev
Log:
MoveProcessor implements CapabilityImplementingProcessor, patch by Andrzej Rusin (IMAP-370)

Modified:
    james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java

Modified: james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java?rev=1418826&r1=1418825&r2=1418826&view=diff
==============================================================================
--- james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java
(original)
+++ james/protocols/trunk/imap/src/main/java/org/apache/james/imap/processor/MoveProcessor.java
Sun Dec  9 06:55:20 2012
@@ -1,9 +1,13 @@
 package org.apache.james.imap.processor;
 
+import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
 
+import org.apache.james.imap.api.ImapConstants;
 import org.apache.james.imap.api.message.response.StatusResponseFactory;
 import org.apache.james.imap.api.process.ImapProcessor;
+import org.apache.james.imap.api.process.ImapSession;
 import org.apache.james.imap.api.process.SelectedMailbox;
 import org.apache.james.imap.message.request.MoveRequest;
 import org.apache.james.mailbox.MailboxManager;
@@ -12,7 +16,9 @@ import org.apache.james.mailbox.exceptio
 import org.apache.james.mailbox.model.MailboxPath;
 import org.apache.james.mailbox.model.MessageRange;
 
-public class MoveProcessor extends CopyProcessor {
+public class MoveProcessor extends CopyProcessor implements CapabilityImplementingProcessor
{
+
+	private static final List<String> CAPS = Collections.unmodifiableList(Arrays.asList(ImapConstants.MOVE_COMMAND_NAME));
 
 	public MoveProcessor(ImapProcessor next, MailboxManager mailboxManager,
 			StatusResponseFactory factory) {
@@ -28,4 +34,12 @@ public class MoveProcessor extends CopyP
 		return processedUids;
 	}
 
+    /**
+    * @see org.apache.james.imap.processor.CapabilityImplementingProcessor
+    * #getImplementedCapabilities(org.apache.james.imap.api.process.ImapSession)
+    */
+	public List<String> getImplementedCapabilities(ImapSession session) {
+		return CAPS;
+	}
+
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message