public enum SmtpCommand extends Enum<SmtpCommand>
| Enum Constant and Description |
|---|
BLANK_LINE |
CONNECT |
DATA |
DATA_END |
EHLO |
EXPN |
HELO |
HELP |
MAIL |
NOOP |
QUIT |
RCPT |
RSET |
UNRECOGNIZED |
VRFY |
| Modifier and Type | Method and Description |
|---|---|
static SmtpCommand |
parse(String line) |
static SmtpCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SmtpCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SmtpCommand CONNECT
public static final SmtpCommand EHLO
public static final SmtpCommand HELO
public static final SmtpCommand MAIL
public static final SmtpCommand RCPT
public static final SmtpCommand DATA
public static final SmtpCommand DATA_END
public static final SmtpCommand QUIT
public static final SmtpCommand RSET
public static final SmtpCommand VRFY
public static final SmtpCommand EXPN
public static final SmtpCommand HELP
public static final SmtpCommand NOOP
public static final SmtpCommand BLANK_LINE
public static final SmtpCommand UNRECOGNIZED
public static SmtpCommand[] values()
for (SmtpCommand c : SmtpCommand.values()) System.out.println(c);
public static SmtpCommand 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 nullpublic static SmtpCommand parse(String line)
Copyright © 2015. All rights reserved.