james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r537643 [2/4] - in /james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src: main/java/org/apache/james/experimental/imapserver/ main/java/org/apache/james/experimental/imapserver/decode/ main/java/org/apache/james/experi...
Date Sun, 13 May 2007 19:25:44 GMT
Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BadResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BadResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BadResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BadResponseMessage.java Sun May 13 12:25:39 2007
@@ -26,22 +26,33 @@
  * Carries the response to a request with bad syntax..
  * 
  */
-class BadResponseMessage implements ImapCommandMessage,
+public class BadResponseMessage implements ImapRequestMessage,
         ImapResponseMessage {
 
     private final String message;
+    private final String tag;
     
     public BadResponseMessage(final String message) {
+    	this(message, null);
+    }
+    
+    public BadResponseMessage(final String message, final String tag) {
         super();
         this.message = message;
+        this.tag = tag;
     }
+    
 
     public ImapResponseMessage process(ImapSession session) {
         return this;
     }
 
     public void encode(ImapResponse response, ImapSession session) {
-        response.badResponse(message);
+    	if (tag == null) {
+    		response.badResponse(message);
+    	} else {
+    		response.badResponse(message, tag);
+    	}
     }
 
 }

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BaseImapMessageFactory.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BaseImapMessageFactory.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BaseImapMessageFactory.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/BaseImapMessageFactory.java Sun May 13 12:25:39 2007
@@ -25,111 +25,134 @@
 import javax.mail.search.SearchTerm;
 
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.AppendRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.AuthenticateRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.CapabilityRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.CheckRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.CloseRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.CopyRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.CreateRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.DeleteRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.ExamineRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.ExpungeRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.FetchRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.ListRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.LoginRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.LogoutRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.LsubRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.NoopRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.RenameRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.SearchRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.SelectRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.StatusRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.StoreRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.SubscribeRequest;
+import org.apache.james.experimental.imapserver.message.request.imap4rev1.UnsubscribeRequest;
 
 /**
  * Naive, factory creates unpooled instances.
  */
 public class BaseImapMessageFactory implements ImapMessageFactory {
 
-    public ImapCommandMessage createErrorMessage(String message, String tag) {
+    public ImapRequestMessage createErrorMessage(String message, String tag) {
         return new ErrorResponseMessage( message, tag );
     }
 
-    public ImapCommandMessage createAppendMessage(ImapCommand command, String mailboxName, Flags flags, Date datetime, MimeMessage message, String tag) {
-        return new AppendCommandMessage(command, mailboxName, 
+    public ImapRequestMessage createAppendMessage(ImapCommand command, String mailboxName, Flags flags, Date datetime, MimeMessage message, String tag) {
+        return new AppendRequest(command, mailboxName, 
                 flags, datetime, message, tag);
     }
 
-    public ImapCommandMessage createAuthenticateMessage(ImapCommand command, String authType, String tag) {
-        return new AuthenticateCommandMessage(command, authType, tag);
+    public ImapRequestMessage createAuthenticateMessage(ImapCommand command, String authType, String tag) {
+        return new AuthenticateRequest(command, authType, tag);
     }
 
-    public ImapCommandMessage createCapabilityMessage(ImapCommand command, String tag) {
-        return new CapabilityCommandMessage(command, tag);
+    public ImapRequestMessage createCapabilityMessage(ImapCommand command, String tag) {
+        return new CapabilityRequest(command, tag);
     }
 
-    public ImapCommandMessage createNoopMessage(ImapCommand command, String tag) {
-        return new NoopCommandMessage(command, tag);
+    public ImapRequestMessage createNoopMessage(ImapCommand command, String tag) {
+        return new NoopRequest(command, tag);
     }
 
-    public ImapCommandMessage createCloseMessage(ImapCommand command, String tag) {
-        return new CloseCommandMessage(command, tag);
+    public ImapRequestMessage createCloseMessage(ImapCommand command, String tag) {
+        return new CloseRequest(command, tag);
     }
 
-    public ImapCommandMessage createCopyMessage(ImapCommand command, IdRange[] idSet, String mailboxName, boolean useUids, String tag) {
-        return new CopyCommandMessage(command, idSet, mailboxName, useUids, tag);
+    public ImapRequestMessage createCopyMessage(ImapCommand command, IdRange[] idSet, String mailboxName, boolean useUids, String tag) {
+        return new CopyRequest(command, idSet, mailboxName, useUids, tag);
     }
 
-    public ImapCommandMessage createCreateMessage(ImapCommand command, String mailboxName, String tag) {
-        return new CreateCommandMessage(command, mailboxName, tag);
+    public ImapRequestMessage createCreateMessage(ImapCommand command, String mailboxName, String tag) {
+        return new CreateRequest(command, mailboxName, tag);
     }
 
-    public ImapCommandMessage createDeleteMessage(ImapCommand command, String mailboxName, String tag) {
-        return new DeleteCommandMessage( command, mailboxName, tag );
+    public ImapRequestMessage createDeleteMessage(ImapCommand command, String mailboxName, String tag) {
+        return new DeleteRequest( command, mailboxName, tag );
     }
 
-    public ImapCommandMessage createExamineMessage(ImapCommand command, String mailboxName, String tag) {
-        return new ExamineCommandMessage(command, mailboxName, tag);
+    public ImapRequestMessage createExamineMessage(ImapCommand command, String mailboxName, String tag) {
+        return new ExamineRequest(command, mailboxName, tag);
     }
 
-    public ImapCommandMessage createExpungeMessage(ImapCommand command, String tag) {
-        return new ExpungeCommandMessage(command, tag);
+    public ImapRequestMessage createExpungeMessage(ImapCommand command, String tag) {
+        return new ExpungeRequest(command, tag);
     }
 
-    public ImapCommandMessage createFetchMessage(ImapCommand command, boolean useUids, IdRange[] idSet, FetchRequest fetch, String tag) {
-        return new FetchCommandMessage(command, useUids, idSet, fetch, tag);
+    public ImapRequestMessage createFetchMessage(ImapCommand command, boolean useUids, IdRange[] idSet, FetchData fetch, String tag) {
+        return new FetchRequest(command, useUids, idSet, fetch, tag);
     }
 
-    public ImapCommandMessage createListMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag) {
-        return new ListCommandMessage(command, referenceName, mailboxPattern, tag);
+    public ImapRequestMessage createListMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag) {
+        return new ListRequest(command, referenceName, mailboxPattern, tag);
     }
 
-    public ImapCommandMessage createLoginMessage(ImapCommand command, String userid, String password, String tag) {
-        return new LoginCommandMessage(command, userid, password, tag);
+    public ImapRequestMessage createLoginMessage(ImapCommand command, String userid, String password, String tag) {
+        return new LoginRequest(command, userid, password, tag);
     }
 
-    public ImapCommandMessage createLogoutMessage(ImapCommand command, String tag) {
-        return new LogoutCommandMessage(command, tag);
+    public ImapRequestMessage createLogoutMessage(ImapCommand command, String tag) {
+        return new LogoutRequest(command, tag);
     }
 
-    public ImapCommandMessage createLsubMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag) {
-        return new LsubCommandMessage(command, referenceName, mailboxPattern, tag);
+    public ImapRequestMessage createLsubMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag) {
+        return new LsubRequest(command, referenceName, mailboxPattern, tag);
     }
 
-    public ImapCommandMessage createRenameMessage(ImapCommand command, String existingName, String newName, String tag) {
-        return new RenameCommandMessage(command, existingName, newName, tag);
+    public ImapRequestMessage createRenameMessage(ImapCommand command, String existingName, String newName, String tag) {
+        return new RenameRequest(command, existingName, newName, tag);
     }
 
-    public ImapCommandMessage createSearchImapMessage(ImapCommand command, SearchTerm searchTerm, boolean useUids, String tag) {
-        return new SearchCommandMessage(command, searchTerm, useUids, tag);
+    public ImapRequestMessage createSearchImapMessage(ImapCommand command, SearchTerm searchTerm, boolean useUids, String tag) {
+        return new SearchRequest(command, searchTerm, useUids, tag);
     }
 
-    public ImapCommandMessage createSelectMessage(ImapCommand command, String mailboxName, String tag) {
-        return  new SelectCommandMessage(command, mailboxName, false, tag);
+    public ImapRequestMessage createSelectMessage(ImapCommand command, String mailboxName, String tag) {
+        return  new SelectRequest(command, mailboxName, tag);
     }
 
-    public ImapCommandMessage createStatusMessage(ImapCommand command, String mailboxName, StatusDataItems statusDataItems, String tag) {
-        return new StatusCommandMessage(command, mailboxName, statusDataItems, tag);
+    public ImapRequestMessage createStatusMessage(ImapCommand command, String mailboxName, StatusDataItems statusDataItems, String tag) {
+        return new StatusRequest(command, mailboxName, statusDataItems, tag);
     }
 
-    public ImapCommandMessage createStoreMessage(ImapCommand command, IdRange[] idSet, StoreDirective directive, Flags flags, boolean useUids, String tag) {
-        return new StoreCommandMessage(command, idSet, directive, flags, useUids, tag);
+    public ImapRequestMessage createStoreMessage(ImapCommand command, IdRange[] idSet, StoreDirective directive, Flags flags, boolean useUids, String tag) {
+        return new StoreRequest(command, idSet, directive, flags, useUids, tag);
     }
 
-    public ImapCommandMessage createSubscribeMessage(ImapCommand command, String mailboxName, String tag) {
-        return new SubscribeCommandMessage(command, mailboxName, tag);
+    public ImapRequestMessage createSubscribeMessage(ImapCommand command, String mailboxName, String tag) {
+        return new SubscribeRequest(command, mailboxName, tag);
     }
 
-    public ImapCommandMessage createUnsubscribeMessage(ImapCommand command, String mailboxName, String tag) {
-        return new UnsubscribeCommandMessage(command, mailboxName, tag);
+    public ImapRequestMessage createUnsubscribeMessage(ImapCommand command, String mailboxName, String tag) {
+        return new UnsubscribeRequest(command, mailboxName, tag);
     }
 
-    public ImapCommandMessage createBadRequestMessage(String message) {
+    public ImapRequestMessage createBadRequestMessage(String message) {
         return new BadResponseMessage(message);
     }
 
-    public ImapCommandMessage createCheckMessage(ImapCommand command, String tag) {
-        return new CheckCommandMessage(command, tag);
+    public ImapRequestMessage createCheckMessage(ImapCommand command, String tag) {
+        return new CheckRequest(command, tag);
     }  
     
     

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CapabilityReponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CapabilityReponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CapabilityReponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CapabilityReponseMessage.java Sun May 13 12:25:39 2007
@@ -24,7 +24,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class CapabilityReponseMessage extends AbstractCommandResponseMessage {
+public class CapabilityReponseMessage extends AbstractCommandResponseMessage {
 
     public CapabilityReponseMessage(ImapCommand command, String tag) {
         super(command, tag);

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CloseResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CloseResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CloseResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CloseResponseMessage.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class CloseResponseMessage extends AbstractCommandResponseMessage {
+public class CloseResponseMessage extends AbstractCommandResponseMessage {
         public CloseResponseMessage(ImapCommand command, String tag) {
             super(command, tag);
         }

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandCompleteResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandCompleteResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandCompleteResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandCompleteResponseMessage.java Sun May 13 12:25:39 2007
@@ -24,7 +24,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class CommandCompleteResponseMessage extends AbstractCommandResponseMessage implements ImapResponseMessage {
+public class CommandCompleteResponseMessage extends AbstractCommandResponseMessage implements ImapResponseMessage {
 
     /**
      * Creates a command completed response message that

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandFailedResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandFailedResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandFailedResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/CommandFailedResponseMessage.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import org.apache.james.experimental.imapserver.ImapSession;
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 
-class CommandFailedResponseMessage implements ImapResponseMessage {
+public class CommandFailedResponseMessage implements ImapResponseMessage {
 
     private final ImapCommand command;
     private final String responseCode;

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ErrorResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ErrorResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ErrorResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ErrorResponseMessage.java Sun May 13 12:25:39 2007
@@ -26,7 +26,7 @@
  * Carries an error response.
  * 
  */
-class ErrorResponseMessage implements ImapResponseMessage, ImapCommandMessage {
+public class ErrorResponseMessage implements ImapResponseMessage, ImapRequestMessage {
 
     private final String message;
     private final String tag;

Copied: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ExamineAndSelectResponseMessage.java (from r537593, james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SelectResponseMessage.java)
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ExamineAndSelectResponseMessage.java?view=diff&rev=537643&p1=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SelectResponseMessage.java&r1=537593&p2=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ExamineAndSelectResponseMessage.java&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SelectResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ExamineAndSelectResponseMessage.java Sun May 13 12:25:39 2007
@@ -26,7 +26,7 @@
 import org.apache.james.experimental.imapserver.store.MailboxException;
 import org.apache.james.mailboxmanager.MessageResult;
 
-class SelectResponseMessage extends AbstractCommandResponseMessage {
+public class ExamineAndSelectResponseMessage extends AbstractCommandResponseMessage {
     private final Flags permanentFlags;
     private final boolean writeable ;
     private final int recentCount;
@@ -34,7 +34,7 @@
     private final MessageResult firstUnseen;
     private final int messageCount;
 
-    public SelectResponseMessage(ImapCommand command, final Flags permanentFlags,
+    public ExamineAndSelectResponseMessage(ImapCommand command, final Flags permanentFlags,
             final boolean writeable, final int recentCount, 
             final long uidValidity, final MessageResult firstUnseen,
             final int messageCount, final String tag) {

Copied: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchData.java (from r537593, james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchRequest.java)
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchData.java?view=diff&rev=537643&p1=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchRequest.java&r1=537593&p2=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchData.java&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchRequest.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchData.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import java.util.Set;
 
 
-public class FetchRequest
+public class FetchData
 {
     private boolean flags;
     private boolean uid;

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/FetchResponseMessage.java Sun May 13 12:25:39 2007
@@ -27,7 +27,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class FetchResponseMessage extends AbstractCommandResponseMessage {
+public class FetchResponseMessage extends AbstractCommandResponseMessage {
 
     private final boolean useUids;
     

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapMessageFactory.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapMessageFactory.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapMessageFactory.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapMessageFactory.java Sun May 13 12:25:39 2007
@@ -32,61 +32,61 @@
  */
 public interface ImapMessageFactory {
 
-    public ImapCommandMessage createErrorMessage(String message, String tag);
+    public ImapRequestMessage createErrorMessage(String message, String tag);
     
-    public ImapCommandMessage createBadRequestMessage(final String message);
+    public ImapRequestMessage createBadRequestMessage(final String message);
     
-    public ImapCommandMessage createAppendMessage(ImapCommand command, String mailboxName, Flags flags, 
+    public ImapRequestMessage createAppendMessage(ImapCommand command, String mailboxName, Flags flags, 
             Date datetime, MimeMessage message, String tag); 
     
-    public ImapCommandMessage  createAuthenticateMessage(final ImapCommand command, 
+    public ImapRequestMessage  createAuthenticateMessage(final ImapCommand command, 
             final String authType, final String tag);
         
-    public ImapCommandMessage createCapabilityMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createCapabilityMessage(final ImapCommand command, final String tag);
 
-    public ImapCommandMessage createCheckMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createCheckMessage(final ImapCommand command, final String tag);
 
-    public ImapCommandMessage createNoopMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createNoopMessage(final ImapCommand command, final String tag);
     
-    public ImapCommandMessage createCloseMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createCloseMessage(final ImapCommand command, final String tag);
 
-    public ImapCommandMessage createCopyMessage(final ImapCommand command, final IdRange[] idSet, final String mailboxName, 
+    public ImapRequestMessage createCopyMessage(final ImapCommand command, final IdRange[] idSet, final String mailboxName, 
             final boolean useUids, final String tag);
     
-    public ImapCommandMessage createCreateMessage(final ImapCommand command, final String mailboxName, final String tag);
+    public ImapRequestMessage createCreateMessage(final ImapCommand command, final String mailboxName, final String tag);
 
-    public ImapCommandMessage createDeleteMessage(final ImapCommand command, final String mailboxName, final String tag);
+    public ImapRequestMessage createDeleteMessage(final ImapCommand command, final String mailboxName, final String tag);
     
-    public ImapCommandMessage createExamineMessage(final ImapCommand command, final String mailboxName, final String tag);
+    public ImapRequestMessage createExamineMessage(final ImapCommand command, final String mailboxName, final String tag);
 
-    public ImapCommandMessage createExpungeMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createExpungeMessage(final ImapCommand command, final String tag);
 
-    public ImapCommandMessage createFetchMessage(final ImapCommand command, final boolean useUids, final IdRange[] idSet, 
-            final FetchRequest fetch, String tag);
+    public ImapRequestMessage createFetchMessage(final ImapCommand command, final boolean useUids, final IdRange[] idSet, 
+            final FetchData fetch, String tag);
     
-    public ImapCommandMessage createListMessage(final ImapCommand command, final String referenceName, final String mailboxPattern,
+    public ImapRequestMessage createListMessage(final ImapCommand command, final String referenceName, final String mailboxPattern,
             final String tag);
     
-    public ImapCommandMessage createLoginMessage(final ImapCommand command, final String userid, final String password, String tag);
+    public ImapRequestMessage createLoginMessage(final ImapCommand command, final String userid, final String password, String tag);
 
-    public ImapCommandMessage createLogoutMessage(final ImapCommand command, final String tag);
+    public ImapRequestMessage createLogoutMessage(final ImapCommand command, final String tag);
 
-    public ImapCommandMessage createLsubMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag);
+    public ImapRequestMessage createLsubMessage(ImapCommand command, String referenceName, String mailboxPattern, String tag);
 
-    public ImapCommandMessage createRenameMessage(final ImapCommand command, final String existingName, final String newName, 
+    public ImapRequestMessage createRenameMessage(final ImapCommand command, final String existingName, final String newName, 
             final String tag);
     
-    public ImapCommandMessage createSearchImapMessage(final ImapCommand command, final SearchTerm searchTerm, final boolean useUids,
+    public ImapRequestMessage createSearchImapMessage(final ImapCommand command, final SearchTerm searchTerm, final boolean useUids,
             final String tag);
     
-    public ImapCommandMessage createSelectMessage(final ImapCommand command, final String mailboxName, final String tag);
+    public ImapRequestMessage createSelectMessage(final ImapCommand command, final String mailboxName, final String tag);
 
-    public ImapCommandMessage createStatusMessage(final ImapCommand command, final String mailboxName, final StatusDataItems statusDataItems, final String tag) ;
+    public ImapRequestMessage createStatusMessage(final ImapCommand command, final String mailboxName, final StatusDataItems statusDataItems, final String tag) ;
 
-    public ImapCommandMessage createStoreMessage(final ImapCommand command, final IdRange[] idSet, final StoreDirective directive, final Flags flags, 
+    public ImapRequestMessage createStoreMessage(final ImapCommand command, final IdRange[] idSet, final StoreDirective directive, final Flags flags, 
          final boolean useUids, final String tag); 
     
-    public ImapCommandMessage createSubscribeMessage(final ImapCommand command, final String mailboxName, final String tag); 
+    public ImapRequestMessage createSubscribeMessage(final ImapCommand command, final String mailboxName, final String tag); 
 
-    public ImapCommandMessage createUnsubscribeMessage(final ImapCommand command, final String mailboxName, final String tag);
+    public ImapRequestMessage createUnsubscribeMessage(final ImapCommand command, final String mailboxName, final String tag);
 }

Copied: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapRequestMessage.java (from r537593, james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapCommandMessage.java)
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapRequestMessage.java?view=diff&rev=537643&p1=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapCommandMessage.java&r1=537593&p2=james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapRequestMessage.java&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapCommandMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ImapRequestMessage.java Sun May 13 12:25:39 2007
@@ -30,7 +30,7 @@
  * and is liable to change.
  * </p>
  */
-public interface ImapCommandMessage {
+public interface ImapRequestMessage {
     
     /**
      * Performs processing of the command.

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ListResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ListResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ListResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/ListResponseMessage.java Sun May 13 12:25:39 2007
@@ -27,7 +27,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class ListResponseMessage extends AbstractCommandResponseMessage {
+public class ListResponseMessage extends AbstractCommandResponseMessage {
     private List messages = new ArrayList();
     
     public ListResponseMessage(final ImapCommand command, final String tag) {

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/LogoutResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/LogoutResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/LogoutResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/LogoutResponseMessage.java Sun May 13 12:25:39 2007
@@ -24,7 +24,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class LogoutResponseMessage extends AbstractCommandResponseMessage implements ImapCommandMessage {
+public class LogoutResponseMessage extends AbstractCommandResponseMessage implements ImapRequestMessage {
 
 
     public static final String BYE_MESSAGE = ImapConstants.VERSION + ImapConstants.SP + "Server logging out";

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SearchResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SearchResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SearchResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/SearchResponseMessage.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class SearchResponseMessage extends AbstractCommandResponseMessage {
+public class SearchResponseMessage extends AbstractCommandResponseMessage {
     private final String idList;
     private final boolean useUids;
     

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StatusResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StatusResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StatusResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StatusResponseMessage.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class StatusResponseMessage extends AbstractCommandResponseMessage {
+public class StatusResponseMessage extends AbstractCommandResponseMessage {
     private final String message;
     
     public StatusResponseMessage(ImapCommand command, final String message, final String tag) {

Modified: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StoreResponseMessage.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StoreResponseMessage.java?view=diff&rev=537643&r1=537642&r2=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StoreResponseMessage.java (original)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/StoreResponseMessage.java Sun May 13 12:25:39 2007
@@ -23,7 +23,7 @@
 import org.apache.james.experimental.imapserver.commands.ImapCommand;
 import org.apache.james.experimental.imapserver.store.MailboxException;
 
-class StoreResponseMessage extends AbstractCommandResponseMessage {
+public class StoreResponseMessage extends AbstractCommandResponseMessage {
     private final boolean useUids;
     
     public StoreResponseMessage(ImapCommand command, final boolean useUids, final String tag) {

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/AbstractImapRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/AbstractImapRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/AbstractImapRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/AbstractImapRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,58 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request;
+
+import org.apache.avalon.framework.logger.AbstractLogEnabled;
+import org.apache.avalon.framework.logger.Logger;
+import org.apache.james.experimental.imapserver.ImapSession;
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.ImapRequestMessage;
+import org.apache.james.experimental.imapserver.message.ImapResponseMessage;
+import org.apache.james.experimental.imapserver.processor.ImapRequestProcessor;
+
+abstract public class AbstractImapRequest extends AbstractLogEnabled implements ImapRequestMessage {
+    
+	private final String tag;
+    private final ImapCommand command;
+    private final ImapRequestProcessor processor;
+    
+    public AbstractImapRequest(final String tag, final ImapCommand command, final ImapRequestProcessor processor) {
+        this.tag = tag;
+        this.command = command;
+        this.processor = processor;
+    }
+    
+	public void enableLogging(Logger logger) {
+		super.enableLogging(logger);
+		setupLogger(processor);
+	}
+
+	public final ImapCommand getCommand() {
+		return command;
+	}
+
+	public final String getTag() {
+		return tag;
+	}
+
+	public final ImapResponseMessage process(ImapSession session) {
+    	final ImapResponseMessage result = processor.process(this, session);
+    	return result;
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AppendRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AppendRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AppendRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AppendRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,60 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import java.util.Date;
+
+import javax.mail.Flags;
+import javax.mail.internet.MimeMessage;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.AppendProcessor;
+
+public class AppendRequest extends AbstractImapRequest {
+    private final String mailboxName;
+    private final Flags flags;
+    private final Date datetime;
+    private final MimeMessage message;
+            
+    public AppendRequest(ImapCommand command, String mailboxName, Flags flags, 
+            Date datetime, MimeMessage message, String tag) {
+        super(tag, command, new AppendProcessor());
+        this.mailboxName = mailboxName;
+        this.flags = flags;
+        this.datetime = datetime;
+        this.message = message;
+    }
+
+    public Date getDatetime() {
+        return datetime;
+    }
+
+    public Flags getFlags() {
+        return flags;
+    }
+
+    public String getMailboxName() {
+        return mailboxName;
+    }
+
+    public MimeMessage getMessage() {
+        return message;
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AuthenticateRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AuthenticateRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AuthenticateRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/AuthenticateRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,37 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.AuthenticateProcessor;
+
+public class AuthenticateRequest extends AbstractImapRequest {
+
+    private final String authType;
+    
+    public AuthenticateRequest(final ImapCommand command, final String authType, final String tag) {
+        super(tag, command, new AuthenticateProcessor());
+        this.authType = authType;
+    }
+    
+    public final String getAuthType() {
+		return authType;
+	}    
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CapabilityRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CapabilityRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CapabilityRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CapabilityRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.CapabilityProcessor;
+
+public class CapabilityRequest extends AbstractImapRequest {
+
+    public CapabilityRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new CapabilityProcessor());
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CheckRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CheckRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CheckRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CheckRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.CheckProcessor;
+
+public class CheckRequest extends AbstractImapRequest {
+    
+    public CheckRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new CheckProcessor());
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CloseRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CloseRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CloseRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CloseRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.CloseProcessor;
+
+public class CloseRequest extends AbstractImapRequest {
+    
+    public CloseRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new CloseProcessor());
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CopyRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CopyRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CopyRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CopyRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,51 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.IdRange;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.CopyProcessor;
+
+public class CopyRequest extends AbstractImapRequest {
+
+    private final IdRange[] idSet;
+    private final String mailboxName;
+    private final boolean useUids;
+
+    public CopyRequest(final ImapCommand command, final IdRange[] idSet, final String mailboxName, 
+            final boolean useUids, final String tag) {
+        super(tag, command, new CopyProcessor());
+        this.idSet = idSet;
+        this.mailboxName = mailboxName;
+        this.useUids = useUids;
+    }
+    
+    public final IdRange[] getIdSet() {
+		return idSet;
+	}
+
+	public final String getMailboxName() {
+		return mailboxName;
+	}
+
+	public final boolean isUseUids() {
+		return useUids;
+	}
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CreateRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CreateRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CreateRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/CreateRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,35 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.CreateProcessor;
+
+public class CreateRequest extends AbstractImapRequest {
+    private final String mailboxName;
+    public CreateRequest(final ImapCommand command, final String mailboxName, final String tag) {
+        super(tag, command, new CreateProcessor());
+        this.mailboxName = mailboxName;
+    }
+    
+    public final String getMailboxName() {
+		return mailboxName;
+	}
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/DeleteRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/DeleteRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/DeleteRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/DeleteRequest.java Sun May 13 12:25:39 2007
@@ -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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.DeleteProcessor;
+
+public class DeleteRequest extends AbstractImapRequest {
+    private final String mailboxName;
+    
+    public DeleteRequest(final ImapCommand command, final String mailboxName, final String tag) {
+        super(tag, command, new DeleteProcessor());
+        this.mailboxName = mailboxName;
+    }
+
+	public final String getMailboxName() {
+		return mailboxName;
+	}
+}
\ No newline at end of file

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExamineRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExamineRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExamineRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExamineRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,38 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.ExamineAndSelectProcessor;
+
+public class ExamineRequest extends AbstractImapRequest {
+    
+    private final String mailboxName;
+    
+    public ExamineRequest(final ImapCommand command, final String mailboxName, final String tag) {
+        super(tag, command, new ExamineAndSelectProcessor());
+        this.mailboxName = mailboxName;
+    }
+
+	public final String getMailboxName() {
+		return mailboxName;
+	}
+    
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExpungeRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExpungeRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExpungeRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ExpungeRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.ExpungeProcessor;
+
+public class ExpungeRequest extends AbstractImapRequest {
+
+    public ExpungeRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new ExpungeProcessor());
+    }
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/FetchRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/FetchRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/FetchRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/FetchRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,56 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.FetchData;
+import org.apache.james.experimental.imapserver.message.IdRange;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.FetchProcessor;
+
+public class FetchRequest extends AbstractImapRequest {
+        private final boolean useUids;
+        private final IdRange[] idSet;
+        private final FetchData fetch;
+
+        public FetchRequest(final ImapCommand command, final boolean useUids, final IdRange[] idSet, 
+                final FetchData fetch, String tag) {
+            super(tag, command, new FetchProcessor());
+            this.useUids = useUids;
+            this.idSet = idSet;
+            this.fetch = fetch;
+            if (useUids) {
+                fetch.setUid(true);
+            }
+        }
+
+		public final FetchData getFetch() {
+			return fetch;
+		}
+
+		public final IdRange[] getIdSet() {
+			return idSet;
+		}
+
+		public final boolean isUseUids() {
+			return useUids;
+		}
+        
+        
+    }

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ListRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ListRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ListRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/ListRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,43 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.ListProcessor;
+
+public class ListRequest extends AbstractImapRequest {
+    private final String baseReferenceName;
+    private final String mailboxPattern;
+
+    public ListRequest(final ImapCommand command, final String referenceName, final String mailboxPattern,
+            final String tag) {
+        super(tag, command, new ListProcessor());
+        this.baseReferenceName = referenceName;
+        this.mailboxPattern = mailboxPattern;
+    }
+    
+    public final String getBaseReferenceName() {
+		return baseReferenceName;
+	}
+
+	public final String getMailboxPattern() {
+		return mailboxPattern;
+	}
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LoginRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LoginRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LoginRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LoginRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,42 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.LoginProcessor;
+
+public class LoginRequest extends AbstractImapRequest {
+    private final String userid;
+    private final String password;
+    
+    public LoginRequest(final ImapCommand command, final String userid, final String password, String tag) {
+        super(tag, command, new LoginProcessor());
+        this.userid = userid;
+        this.password = password;
+    }
+    
+    public final String getPassword() {
+		return password;
+	}
+
+	public final String getUserid() {
+		return userid;
+	}
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LogoutRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LogoutRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LogoutRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LogoutRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,31 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.LogoutProcessor;
+
+public class LogoutRequest extends AbstractImapRequest {
+
+    public LogoutRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new LogoutProcessor());
+    }
+    
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LsubRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LsubRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LsubRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/LsubRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,43 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.LsubProcessor;
+
+public class LsubRequest extends AbstractImapRequest {
+    private final String baseReferenceName;
+    private final String mailboxPattern;
+
+    public LsubRequest(final ImapCommand command, final String referenceName, final String mailboxPattern,
+            final String tag) {
+        super(tag, command, new LsubProcessor());
+        this.baseReferenceName = referenceName;
+        this.mailboxPattern = mailboxPattern;
+    }
+    
+    public final String getBaseReferenceName() {
+		return baseReferenceName;
+	}
+
+	public final String getMailboxPattern() {
+		return mailboxPattern;
+	}
+}

Added: james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/NoopRequest.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/NoopRequest.java?view=auto&rev=537643
==============================================================================
--- james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/NoopRequest.java (added)
+++ james/server/sandbox/seda-imap-modular/experimental-seda-imap-function/src/main/java/org/apache/james/experimental/imapserver/message/request/imap4rev1/NoopRequest.java Sun May 13 12:25:39 2007
@@ -0,0 +1,30 @@
+/****************************************************************
+ * 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.james.experimental.imapserver.message.request.imap4rev1;
+
+import org.apache.james.experimental.imapserver.commands.ImapCommand;
+import org.apache.james.experimental.imapserver.message.request.AbstractImapRequest;
+import org.apache.james.experimental.imapserver.processor.imap4rev1.NoopProcessor;
+
+public class NoopRequest extends AbstractImapRequest {
+    
+    public NoopRequest(final ImapCommand command, final String tag) {
+        super(tag, command, new NoopProcessor());
+    }
+}



---------------------------------------------------------------------
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