Package ch.astorm.smtp4j.protocol
Enum SmtpCommand.Type
- java.lang.Object
-
- java.lang.Enum<SmtpCommand.Type>
-
- ch.astorm.smtp4j.protocol.SmtpCommand.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SmtpCommand.Type>
- Enclosing class:
- SmtpCommand
public static enum SmtpCommand.Type extends java.lang.Enum<SmtpCommand.Type>
Represents the SMTP command types.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String cmd)static SmtpCommand.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SmtpCommand.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EHLO
public static final SmtpCommand.Type EHLO
-
QUIT
public static final SmtpCommand.Type QUIT
-
MAIL_FROM
public static final SmtpCommand.Type MAIL_FROM
-
RECIPIENT
public static final SmtpCommand.Type RECIPIENT
-
DATA
public static final SmtpCommand.Type DATA
-
EXPAND
public static final SmtpCommand.Type EXPAND
-
VERIFY
public static final SmtpCommand.Type VERIFY
-
NOOP
public static final SmtpCommand.Type NOOP
-
HELP
public static final SmtpCommand.Type HELP
-
RESET
public static final SmtpCommand.Type RESET
-
UNKNOWN
public static final SmtpCommand.Type UNKNOWN
-
-
Method Detail
-
values
public static SmtpCommand.Type[] 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 (SmtpCommand.Type c : SmtpCommand.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmtpCommand.Type 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 namejava.lang.NullPointerException- if the argument is null
-
matches
public boolean matches(java.lang.String cmd)
-
-