com.dumbster.smtp

Class SmtpState

public class SmtpState extends Object

SMTP server state.
Field Summary
static SmtpStateCONNECT
CONNECT state: waiting for a client connection.
static SmtpStateDATA_BODY
Processing body text.
static SmtpStateDATA_HDR
Waiting for headers.
static SmtpStateGREET
GREET state: wating for a ELHO message.
static SmtpStateMAIL
MAIL state: waiting for the MAIL FROM: command.
static SmtpStateQUIT
End of client transmission.
static SmtpStateRCPT
RCPT state: waiting for a RCPT <email address> command.
Method Summary
StringtoString()
String representation of this SmtpState.

Field Detail

CONNECT

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

DATA_BODY

public static final SmtpState DATA_BODY
Processing body text.

DATA_HDR

public static final SmtpState DATA_HDR
Waiting for headers.

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.

QUIT

public static final SmtpState QUIT
End of client transmission.

RCPT

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

Method Detail

toString

public String toString()
String representation of this SmtpState.

Returns: a String