You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2009/08/15 17:58:32 UTC
svn commit: r804479 -
/james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
Author: norman
Date: Sat Aug 15 15:58:31 2009
New Revision: 804479
URL: http://svn.apache.org/viewvc?rev=804479&view=rev
Log:
Remove unused fields/imports
Modified:
james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
Modified: james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java
URL: http://svn.apache.org/viewvc/james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java?rev=804479&r1=804478&r2=804479&view=diff
==============================================================================
--- james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java (original)
+++ james/server/sandbox/active/smtp_refactor/smtpserver-function/src/main/java/org/apache/james/smtpserver/SMTPHandler.java Sat Aug 15 15:58:31 2009
@@ -22,15 +22,12 @@
package org.apache.james.smtpserver;
import java.io.IOException;
-import java.net.Socket;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Random;
-import org.apache.james.Constants;
-import org.apache.james.socket.AbstractJamesHandler;
import org.apache.james.socket.ProtocolHandler;
import org.apache.james.socket.ProtocolHandlerHelper;
import org.apache.james.util.CRLFDelimitedByteBuffer;
@@ -44,41 +41,29 @@
*/
public class SMTPHandler implements ProtocolHandler, SMTPSession {
- private ProtocolHandlerHelper helper;
-
- /**
- * The constants to indicate the current processing mode of the session
- */
- private final static byte COMMAND_MODE = 1;
- private final static byte RESPONSE_MODE = 2;
- private final static byte MESSAGE_RECEIVED_MODE = 3;
- private final static byte MESSAGE_ABORT_MODE = 4;
- private boolean sessionEnded = false;
-
- /**
- * SMTP Server identification string used in SMTP headers
- */
- private final static String SOFTWARE_TYPE = "JAMES SMTP Server " + Constants.SOFTWARE_VERSION;
-
- /**
- * Static Random instance used to generate SMTP ids
- */
- private final static Random random = new Random();
-
- /**
- * Static RFC822DateFormat used to generate date headers
- */
- private final static RFC822DateFormat rfc822DateFormat = new RFC822DateFormat();
-
- /**
- * The name of the currently parsed command
- */
- String curCommandName = null;
-
- /**
- * The value of the currently parsed command
- */
- String curCommandArgument = null;
+ private ProtocolHandlerHelper helper;
+
+ private boolean sessionEnded = false;
+
+ /**
+ * Static Random instance used to generate SMTP ids
+ */
+ private final static Random random = new Random();
+
+ /**
+ * Static RFC822DateFormat used to generate date headers
+ */
+ private final static RFC822DateFormat rfc822DateFormat = new RFC822DateFormat();
+
+ /**
+ * The name of the currently parsed command
+ */
+ String curCommandName = null;
+
+ /**
+ * The value of the currently parsed command
+ */
+ String curCommandArgument = null;
/**
* The hash map holds states which should be used in the whole connection
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org