james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1206567 - in /james/protocols/trunk/pop3: .settings/ src/main/java/org/apache/james/protocols/pop3/ src/main/java/org/apache/james/protocols/pop3/core/ src/main/java/org/apache/james/protocols/pop3/mailbox/
Date Sat, 26 Nov 2011 19:53:03 GMT
Author: norman
Date: Sat Nov 26 19:52:58 2011
New Revision: 1206567

URL: http://svn.apache.org/viewvc?rev=1206567&view=rev
Log:
Replace tabs by spaces

Added:
    james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs   (with props)
Modified:
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/CapaCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/DeleCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ExtraDotInputStream.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ListCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/NoopCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/PassCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/QuitCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RetrCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RsetCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StatCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StlsCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/TopCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UidlCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UnknownCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UserCmdHandler.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/AbstractMailbox.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/Mailbox.java
    james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/MailboxFactory.java

Added: james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs?rev=1206567&view=auto
==============================================================================
--- james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs (added)
+++ james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs Sat Nov 26 19:52:58 2011
@@ -0,0 +1,4 @@
+#Sat Nov 26 20:46:19 CET 2011
+eclipse.preferences.version=1
+formatter_profile=_ASF
+formatter_settings_version=12

Propchange: james/protocols/trunk/pop3/.settings/org.eclipse.jdt.ui.prefs
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3ConfigurationImpl.java
Sat Nov 26 19:52:58 2011
@@ -21,18 +21,19 @@ package org.apache.james.protocols.pop3;
 
 public class POP3ConfigurationImpl implements POP3Configuration {
 
-	private final String helloName;
+    private final String helloName;
 
-	public POP3ConfigurationImpl(String helloName) {
-		this.helloName = helloName;
-	}
-	
-	/*
-	 * (non-Javadoc)
-	 * @see org.apache.james.protocols.pop3.POP3Configuration#getHelloName()
-	 */
-	public String getHelloName() {
-		return helloName;
-	}
+    public POP3ConfigurationImpl(String helloName) {
+        this.helloName = helloName;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.james.protocols.pop3.POP3Configuration#getHelloName()
+     */
+    public String getHelloName() {
+        return helloName;
+    }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/POP3SessionImpl.java
Sat Nov 26 19:52:58 2011
@@ -94,8 +94,4 @@ public class POP3SessionImpl extends Pro
     public Response newFatalErrorResponse() {
         return null;
     }
-
-
-
-
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/CapaCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/CapaCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/CapaCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/CapaCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -92,7 +92,7 @@ public class CapaCmdHandler implements C
      * @see org.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)
      */
     public List<String> getImplementedCapabilities(POP3Session session) {
-    	return CAPS;
+        return CAPS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/DeleCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/DeleCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/DeleCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/DeleCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -81,7 +81,7 @@ public class DeleCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ExtraDotInputStream.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ExtraDotInputStream.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ExtraDotInputStream.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ExtraDotInputStream.java
Sat Nov 26 19:52:58 2011
@@ -32,7 +32,7 @@ public class ExtraDotInputStream extends
 
     boolean startLine = true;
     private int last;
-	private final PushbackInputStream in;
+    private final PushbackInputStream in;
 
     public ExtraDotInputStream(InputStream in) {
         this.in = new PushbackInputStream(in, 2);
@@ -46,7 +46,7 @@ public class ExtraDotInputStream extends
        if (startLine) {
            startLine = false;
            if (i == '.') {
-        	   in.unread(i);
+                in.unread(i);
                return '.';
            }
            
@@ -58,43 +58,36 @@ public class ExtraDotInputStream extends
        last = i;
        return i;
        
-
     }
 
+    @Override
+    public long skip(long n) throws IOException {
+        throw new IOException("Skip not supported");
+    }
 
-	@Override
-	public long skip(long n) throws IOException {
-		throw new IOException("Skip not supported");
-	}
-
-
-	@Override
-	public int available() throws IOException {
-		return in.available();
-	}
-
-
-	@Override
-	public void close() throws IOException {
-		in.close();
-	}
-
-
-	@Override
-	public void mark(int readlimit) {
-		// not supported
-	}
+    @Override
+    public int available() throws IOException {
+        return in.available();
+    }
 
+    @Override
+    public void close() throws IOException {
+        in.close();
+    }
 
-	@Override
-	public void reset() throws IOException {
-		// not supported
-	}
+    @Override
+    public void mark(int readlimit) {
+        // not supported
+    }
 
+    @Override
+    public void reset() throws IOException {
+        // not supported
+    }
 
-	@Override
-	public boolean markSupported() {
-		return false;
-	}
+    @Override
+    public boolean markSupported() {
+        return false;
+    }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ListCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ListCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ListCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/ListCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -112,7 +112,7 @@ public class ListCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/NoopCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/NoopCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/NoopCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/NoopCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -53,7 +53,7 @@ public class NoopCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/PassCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/PassCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/PassCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/PassCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -84,7 +84,7 @@ public class PassCmdHandler extends Rset
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/QuitCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/QuitCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/QuitCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/QuitCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -56,7 +56,7 @@ public class QuitCmdHandler implements C
             ;
             long uids[] = new long[toBeRemoved.size()];
             for (int i = 0;i < toBeRemoved.size(); i++) {
-            	uids[i] = toBeRemoved.get(i);
+                uids[i] = toBeRemoved.get(i);
             }
             mailbox.remove(uids);
             response = new POP3Response(POP3Response.OK_RESPONSE, "Apache James POP3 Server
signing off.");
@@ -66,10 +66,10 @@ public class QuitCmdHandler implements C
         }     
         response.setEndSession(true);
         try {
-			mailbox.close();
-		} catch (IOException e) {
-			// ignore on close
-		}
+            mailbox.close();
+        } catch (IOException e) {
+            // ignore on close
+        }
         return response;
     }
 
@@ -77,7 +77,7 @@ public class QuitCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RetrCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RetrCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RetrCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RetrCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -63,23 +63,17 @@ public class RetrCmdHandler implements C
 
                 Long uid = uidList.get(num - 1).getUid();
                 if (deletedUidList.contains(uid) == false) {
-                	
                     InputStream content = session.getUserMailbox().getMessage(uid);
 
                     if (content != null) {
-
                         InputStream in = new CRLFTerminatedInputStream(new ExtraDotInputStream(content));
                         response = new POP3StreamResponse(POP3Response.OK_RESPONSE, "Message
follows", in);
                         return response;
-
-                        
-
                     } else {
                         StringBuilder responseBuffer = new StringBuilder(64).append("Message
(").append(num).append(") does not exist.");
                         response = new POP3Response(POP3Response.ERR_RESPONSE, responseBuffer.toString());
                     }
                 } else {
-
                     StringBuilder responseBuffer = new StringBuilder(64).append("Message
(").append(num).append(") already deleted.");
                     response = new POP3Response(POP3Response.ERR_RESPONSE, responseBuffer.toString());
                 }
@@ -92,12 +86,11 @@ public class RetrCmdHandler implements C
         return response;
     }
 
-
     /**
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RsetCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RsetCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RsetCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/RsetCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -79,7 +79,7 @@ public class RsetCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StatCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StatCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StatCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StatCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -75,7 +75,7 @@ public class StatCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StlsCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StlsCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StlsCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/StlsCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -72,6 +72,6 @@ public class StlsCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/TopCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/TopCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/TopCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/TopCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -102,7 +102,6 @@ public class TopCmdHandler extends RetrC
                 }
             } catch (IOException ioe) {
                 response = new POP3Response(POP3Response.ERR_RESPONSE, "Error while retrieving
message.");
-            
             } catch (IndexOutOfBoundsException iob) {
                 StringBuilder exceptionBuffer = new StringBuilder(64).append("Message (").append(num).append(")
does not exist.");
                 response = new POP3Response(POP3Response.ERR_RESPONSE, exceptionBuffer.toString());
@@ -121,11 +120,11 @@ public class TopCmdHandler extends RetrC
      * @see org.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)
      */
     @SuppressWarnings("unchecked")
-	public List<String> getImplementedCapabilities(POP3Session session) {
+    public List<String> getImplementedCapabilities(POP3Session session) {
         if (session.getHandlerState() == POP3Session.TRANSACTION) {
-        	return CAPS;
+            return CAPS;
         } else {
-        	return Collections.EMPTY_LIST;
+            return Collections.EMPTY_LIST;
         }
     }
 
@@ -133,20 +132,19 @@ public class TopCmdHandler extends RetrC
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
     /**
      * This {@link InputStream} implementation can be used to limit the body
      * lines which will be read from the wrapped {@link InputStream}
-     */
-    // TODO: Fix me!
+     */    // TODO: Fix me!
     private final class CountingBodyInputStream extends InputStream {
 
         private int count = 0;
         private int limit = -1;
         private int lastChar;
-		private InputStream in;
+        private InputStream in;
 
         /**
          * 
@@ -181,36 +179,35 @@ public class TopCmdHandler extends RetrC
 
         }
 
-		@Override
-		public long skip(long n) throws IOException {
-			return in.skip(n);
-		}
-
-		@Override
-		public int available() throws IOException {
-			return in.available();
-		}
-
-		@Override
-		public void close() throws IOException {
-			in.close();
-		}
-
-		@Override
-		public void mark(int readlimit) {
-			// not supported
-		}
-
-		@Override
-		public synchronized void reset() throws IOException {
-			// do nothing as mark is not supported
-		}
-
-		@Override
-		public boolean markSupported() {
-			return false;
-		}
-        
-        
+        @Override
+        public long skip(long n) throws IOException {
+            return in.skip(n);
+        }
+
+        @Override
+        public int available() throws IOException {
+            return in.available();
+        }
+
+        @Override
+        public void close() throws IOException {
+            in.close();
+        }
+
+        @Override
+        public void mark(int readlimit) {
+            // not supported
+        }
+
+        @Override
+        public synchronized void reset() throws IOException {
+            // do nothing as mark is not supported
+        }
+
+        @Override
+        public boolean markSupported() {
+            return false;
+        }
+
     }
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UidlCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UidlCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UidlCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UidlCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -102,11 +102,11 @@ public class UidlCmdHandler implements C
      * @see org.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)
      */
     @SuppressWarnings("unchecked")
-	public List<String> getImplementedCapabilities(POP3Session session) {
+    public List<String> getImplementedCapabilities(POP3Session session) {
         if (session.getHandlerState() == POP3Session.TRANSACTION) {
-        	return CAPS;
+            return CAPS;
         } else {
-        	return Collections.EMPTY_LIST;
+            return Collections.EMPTY_LIST;
         }
     }
 
@@ -114,6 +114,6 @@ public class UidlCmdHandler implements C
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UnknownCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UnknownCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UnknownCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UnknownCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -53,7 +53,7 @@ public class UnknownCmdHandler implement
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UserCmdHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UserCmdHandler.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UserCmdHandler.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/core/UserCmdHandler.java
Sat Nov 26 19:52:58 2011
@@ -60,13 +60,13 @@ public class UserCmdHandler implements C
      * @see org.apache.james.pop3server.core.CapaCapability#getImplementedCapabilities(org.apache.james.pop3server.POP3Session)
      */
     public List<String> getImplementedCapabilities(POP3Session session) {
-    	return CAPS;
+        return CAPS;
     }
 
     /**
      * @see org.apache.james.protocols.api.handler.CommandHandler#getImplCommands()
      */
     public Collection<String> getImplCommands() {
-    	return COMMANDS;
+        return COMMANDS;
     }
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/AbstractMailbox.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/AbstractMailbox.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/AbstractMailbox.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/AbstractMailbox.java
Sat Nov 26 19:52:58 2011
@@ -23,22 +23,24 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.io.SequenceInputStream;
 
-public abstract class AbstractMailbox implements Mailbox{
+public abstract class AbstractMailbox implements Mailbox {
 
-	/*
-	 * (non-Javadoc)
-	 * @see org.apache.james.protocols.pop3.mailbox.Mailbox#getMessage(long)
-	 */
-	public InputStream getMessage(long uid) throws IOException {
-		return new SequenceInputStream(getMessageHeaders(uid), getMessageBody(uid));
-	}
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.james.protocols.pop3.mailbox.Mailbox#getMessage(long)
+     */
+    public InputStream getMessage(long uid) throws IOException {
+        return new SequenceInputStream(getMessageHeaders(uid), getMessageBody(uid));
+    }
 
-	/*
-	 * (non-Javadoc)
-	 * @see org.apache.james.protocols.pop3.mailbox.Mailbox#close()
-	 */
-	public void close() throws IOException {
-		// do nothing
-	}
+    /*
+     * (non-Javadoc)
+     * 
+     * @see org.apache.james.protocols.pop3.mailbox.Mailbox#close()
+     */
+    public void close() throws IOException {
+        // do nothing
+    }
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/Mailbox.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/Mailbox.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/Mailbox.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/Mailbox.java
Sat Nov 26 19:52:58 2011
@@ -22,71 +22,74 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.util.List;
 
-
 /**
  * A Mailbox which is used in POP3 to retrieve messages
  * 
- *
+ * 
  */
 public interface Mailbox {
-	
-	/**
-	 * Returns the message body as {@link InputStream} or <code>null</code> if no
message can be found for the given <code>uid</code>
-	 * 
-	 * @param uid
-	 * @return body
-	 * @throws IOException
-	 */
-	InputStream getMessageBody(long uid) throws IOException;
-	
-	/**
-	 * Returns the message headers as {@link InputStream} or <code>null</code> if
no message can be found for the given <code>uid</code>
-	 * 
-	 * @param uid
-	 * @return headers
-	 * @throws IOException
-	 */
-	InputStream getMessageHeaders(long uid) throws IOException;
-	
-	/**
-	 * Return the full message (headers + body) as {@link InputStream} or <code>null</code>
if no message can be found for the given <code>uid</code>
-	 * @param uid
-	 * @return message
-	 * @throws IOException
-	 */
-	InputStream getMessage(long uid) throws IOException;
-
-	
-	/**
-	 * Return a immutable {@link List} which holds the {@link MessageMetaData} for all messages
in the {@link Mailbox}
-	 * 
-	 * @return messages
-	 * @throws IOException
-	 */
-	List<MessageMetaData> getMessages() throws IOException;;
-	
-	/**
-	 * Remove the messages with the given uids
-	 * 
-	 * @param uids
-	 */
-	void remove(long... uids) throws IOException;
-	
-	
-	/**
-	 * Return the identifier for the mailbox. This MUST not change 
-	 * 
-	 * @return identifer
-	 * @throws IOException
-	 */
-	String getIdentifier() throws IOException;
-	
-	
-	/**
-	 * Close the mailbox, Any futher attempt to access or change the {@link Mailbox}'s content
will fail
-	 * 
-	 * @throws IOException
-	 */
-	void close() throws IOException;
+
+    /**
+     * Returns the message body as {@link InputStream} or <code>null</code> if
+     * no message can be found for the given <code>uid</code>
+     * 
+     * @param uid
+     * @return body
+     * @throws IOException
+     */
+    InputStream getMessageBody(long uid) throws IOException;
+
+    /**
+     * Returns the message headers as {@link InputStream} or <code>null</code>
+     * if no message can be found for the given <code>uid</code>
+     * 
+     * @param uid
+     * @return headers
+     * @throws IOException
+     */
+    InputStream getMessageHeaders(long uid) throws IOException;
+
+    /**
+     * Return the full message (headers + body) as {@link InputStream} or
+     * <code>null</code> if no message can be found for the given
+     * <code>uid</code>
+     * 
+     * @param uid
+     * @return message
+     * @throws IOException
+     */
+    InputStream getMessage(long uid) throws IOException;
+
+    /**
+     * Return a immutable {@link List} which holds the {@link MessageMetaData}
+     * for all messages in the {@link Mailbox}
+     * 
+     * @return messages
+     * @throws IOException
+     */
+    List<MessageMetaData> getMessages() throws IOException;;
+
+    /**
+     * Remove the messages with the given uids
+     * 
+     * @param uids
+     */
+    void remove(long... uids) throws IOException;
+
+    /**
+     * Return the identifier for the mailbox. This MUST not change
+     * 
+     * @return identifer
+     * @throws IOException
+     */
+    String getIdentifier() throws IOException;
+
+    /**
+     * Close the mailbox, Any futher attempt to access or change the
+     * {@link Mailbox}'s content will fail
+     * 
+     * @throws IOException
+     */
+    void close() throws IOException;
 
 }

Modified: james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/MailboxFactory.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/MailboxFactory.java?rev=1206567&r1=1206566&r2=1206567&view=diff
==============================================================================
--- james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/MailboxFactory.java
(original)
+++ james/protocols/trunk/pop3/src/main/java/org/apache/james/protocols/pop3/mailbox/MailboxFactory.java
Sat Nov 26 19:52:58 2011
@@ -29,14 +29,15 @@ import org.apache.james.protocols.pop3.P
  */
 public interface MailboxFactory {
 
-	/**
-	 * Returns the {@link Mailbox} for the {@link POP3Session}. If the user does not exist or
the password is not valid it will return <code>null</code>
-	 * 
-	 * @param user
-	 * @param password
-	 * @return mailbox or null if not valid user or password was given
-	 * @throws IOException
-	 */
-	public Mailbox getMailbox(POP3Session session, String password) throws IOException;
-	
+    /**
+     * Returns the {@link Mailbox} for the {@link POP3Session}. If the user does
+     * not exist or the password is not valid it will return <code>null</code>
+     * 
+     * @param user
+     * @param password
+     * @return mailbox or null if not valid user or password was given
+     * @throws IOException
+     */
+    public Mailbox getMailbox(POP3Session session, String password) throws IOException;
+
 }



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