things.data.transport.smtp
Enum SMTPState

java.lang.Object
  extended by java.lang.Enum<SMTPState>
      extended by things.data.transport.smtp.SMTPState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SMTPState>

public enum SMTPState
extends java.lang.Enum<SMTPState>

SMTP client state.

Version:
1.0

Version History

EPG - Adapted from another project - 23 NOV 06
 
Author:
Erich P. Gatejen

Enum Constant Summary
BAD
           
CONNECTED
           
FRESH
           
LOGIN_COMPLETE
           
MAILFROM_DONE
           
RCPTTO_DONE
           
 
Method Summary
 boolean isLive()
          Is this state alive?
static SMTPState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SMTPState[] 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

FRESH

public static final SMTPState FRESH

CONNECTED

public static final SMTPState CONNECTED

LOGIN_COMPLETE

public static final SMTPState LOGIN_COMPLETE

MAILFROM_DONE

public static final SMTPState MAILFROM_DONE

RCPTTO_DONE

public static final SMTPState RCPTTO_DONE

BAD

public static final SMTPState BAD
Method Detail

values

public static SMTPState[] 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 (SMTPState c : SMTPState.values())
    System.out.println(c);

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

valueOf

public static SMTPState valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isLive

public boolean isLive()
Is this state alive?

Returns:
true if it is.


Things.