com.dumbster.smtp
Class SmtpState

java.lang.Object
  extended bycom.dumbster.smtp.SmtpState

public class SmtpState
extends java.lang.Object

SMTP server state.


Field Summary
static SmtpState CONNECT
          CONNECT state: waiting for a client connection.
static SmtpState DATA_BODY
          Processing body text.
static SmtpState DATA_HDR
          Waiting for headers.
static SmtpState GREET
          GREET state: wating for a ELHO message.
static SmtpState MAIL
          MAIL state: waiting for the MAIL FROM: command.
static SmtpState QUIT
          End of client transmission.
static SmtpState RCPT
          RCPT state: waiting for a RCPT <email address> command.
 
Method Summary
 java.lang.String toString()
          String representation of this SmtpState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECT

public static final SmtpState CONNECT
CONNECT state: waiting for a client connection.


GREET

public static final SmtpState GREET
GREET state: wating for a ELHO message.


MAIL

public static final SmtpState MAIL
MAIL state: waiting for the MAIL FROM: command.


RCPT

public static final SmtpState RCPT
RCPT state: waiting for a RCPT <email address> command.


DATA_HDR

public static final SmtpState DATA_HDR
Waiting for headers.


DATA_BODY

public static final SmtpState DATA_BODY
Processing body text.


QUIT

public static final SmtpState QUIT
End of client transmission.

Method Detail

toString

public java.lang.String toString()
String representation of this SmtpState.

Returns:
a String