org.mmbase.module.smtp
Enum SMTPFetcher.State

java.lang.Object
  extended by java.lang.Enum<SMTPFetcher.State>
      extended by org.mmbase.module.smtp.SMTPFetcher.State
All Implemented Interfaces:
Serializable, Comparable<SMTPFetcher.State>
Enclosing class:
SMTPFetcher

static enum SMTPFetcher.State
extends Enum<SMTPFetcher.State>


Enum Constant Summary
DATA
          We received a DATA and we are now processing the data
FINISHED
          We received a QUIT, and that we may close the connection
HELO
          We sent our '220' initial session instantiation message, and are now waiting for a HELO
IDLE
           
MAILFROM
          We received a HELO and we are now waiting for a 'MAIL FROM:'
RCPTTO
          We received a MAIL FROM and we are now waiting for a 'RCPT TO:'
 
Method Summary
static SMTPFetcher.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SMTPFetcher.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IDLE

public static final SMTPFetcher.State IDLE

HELO

public static final SMTPFetcher.State HELO
We sent our '220' initial session instantiation message, and are now waiting for a HELO


MAILFROM

public static final SMTPFetcher.State MAILFROM
We received a HELO and we are now waiting for a 'MAIL FROM:'


RCPTTO

public static final SMTPFetcher.State RCPTTO
We received a MAIL FROM and we are now waiting for a 'RCPT TO:'


DATA

public static final SMTPFetcher.State DATA
We received a DATA and we are now processing the data


FINISHED

public static final SMTPFetcher.State FINISHED
We received a QUIT, and that we may close the connection

Method Detail

values

public static SMTPFetcher.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SMTPFetcher.State c : SMTPFetcher.State.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SMTPFetcher.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


MMBase 2.0-SNAPSHOT - null