james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r553342 [3/3] - in /james/server/trunk: imap-api/src/main/java/org/apache/james/api/imap/message/request/ imap-codec-library/src/main/java/org/apache/james/imap/message/request/base/ imap-codec-library/src/main/java/org/apache/james/imap/me...
Date Wed, 04 Jul 2007 22:10:40 GMT
Modified: james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/UnsubscribeProcessor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/UnsubscribeProcessor.java?view=diff&rev=553342&r1=553341&r2=553342
==============================================================================
--- james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/UnsubscribeProcessor.java
(original)
+++ james/server/trunk/imap-mailbox-processor-function/src/main/java/org/apache/james/imapserver/processor/imap4rev1/UnsubscribeProcessor.java
Wed Jul  4 15:10:37 2007
@@ -36,10 +36,9 @@
 import org.apache.james.mailboxmanager.manager.MailboxManager;
 import org.apache.james.mailboxmanager.manager.MailboxManagerProvider;
 
-
 public class UnsubscribeProcessor extends AbstractMailboxAwareProcessor {
-	
-	public UnsubscribeProcessor(final ImapProcessor next, 
+
+    public UnsubscribeProcessor(final ImapProcessor next,
             final MailboxManagerProvider mailboxManagerProvider) {
         super(next, mailboxManagerProvider);
     }
@@ -47,30 +46,38 @@
     protected boolean isAcceptable(ImapMessage message) {
         return (message instanceof UnsubscribeRequest);
     }
-    
-    protected ImapResponseMessage doProcess(ImapRequest message, ImapSession session, String
tag, ImapCommand command) throws MailboxException, AuthorizationException, ProtocolException
{
+
+    protected ImapResponseMessage doProcess(ImapRequest message,
+            ImapSession session, String tag, ImapCommand command)
+            throws MailboxException, AuthorizationException, ProtocolException {
         final UnsubscribeRequest request = (UnsubscribeRequest) message;
-        final ImapResponseMessage result = doProcess(request, session, tag, command);
-		return result;
-	}
+        final ImapResponseMessage result = doProcess(request, session, tag,
+                command);
+        return result;
+    }
 
-	private ImapResponseMessage doProcess(UnsubscribeRequest request, ImapSession session, String
tag, ImapCommand command) throws MailboxException, AuthorizationException, ProtocolException
{
-		final String authType = request.getMailboxName();
-		final ImapResponseMessage result = doProcess(authType, session, tag, command);
-		return result;
-	}
-	
-	private ImapResponseMessage doProcess(final String mailboxName, 
-			ImapSession session, String tag, ImapCommand command) throws MailboxException, AuthorizationException,
ProtocolException {
+    private ImapResponseMessage doProcess(UnsubscribeRequest request,
+            ImapSession session, String tag, ImapCommand command)
+            throws MailboxException, AuthorizationException, ProtocolException {
+        final String authType = request.getMailboxName();
+        final ImapResponseMessage result = doProcess(authType, session, tag,
+                command);
+        return result;
+    }
+
+    private ImapResponseMessage doProcess(final String mailboxName,
+            ImapSession session, String tag, ImapCommand command)
+            throws MailboxException, AuthorizationException, ProtocolException {
         try {
-            final String fullMailboxName=buildFullName(session, mailboxName);
+            final String fullMailboxName = buildFullName(session, mailboxName);
             final MailboxManager mailboxManager = getMailboxManager(session);
-            mailboxManager.setSubscription(fullMailboxName,false);
+            mailboxManager.setSubscription(fullMailboxName, false);
         } catch (MailboxManagerException e) {
             throw new MailboxException(e);
         }
-        final CommandCompleteResponse result = new CommandCompleteResponse(command, tag);
+        final CommandCompleteResponse result = new CommandCompleteResponse(
+                command, tag);
         ImapSessionUtils.addUnsolicitedResponses(result, session, false);
         return result;
-	}
+    }
 }



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