public enum SmtpState extends Enum<SmtpState>
| Enum Constant and Description |
|---|
CONNECT |
DATA_BODY |
DATA_HEADER |
DISCONNECT |
GREET |
MAIL |
QUIT |
RCPT |
| Modifier and Type | Method and Description |
|---|---|
static SmtpState |
valueOf(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.
|
public static final SmtpState CONNECT
public static final SmtpState GREET
public static final SmtpState MAIL
public static final SmtpState RCPT
public static final SmtpState DATA_HEADER
public static final SmtpState DATA_BODY
public static final SmtpState QUIT
public static final SmtpState DISCONNECT
public static SmtpState[] values()
for (SmtpState c : SmtpState.values()) System.out.println(c);
public static SmtpState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2015. All rights reserved.