org.apache.commons.net.smtp
Class SMTPCommand
public final
class
SMTPCommand
extends Object
SMTPCommand stores a set of constants for SMTP command codes. To interpret
the meaning of the codes, familiarity with RFC 821 is assumed.
The mnemonic constant names are transcriptions from the code descriptions
of RFC 821. For those who think in terms of the actual SMTP commands,
a set of constants such as {@link #HELO HELO } are provided
where the constant name is the same as the SMTP command.
Author: Daniel F. Savarese
Method Summary |
static String | getCommand(int command)
Retrieve the SMTP protocol command string corresponding to a specified
command code.
|
public static final int DATA
public static final int EXPAND
public static final int EXPN
public static final int HELLO
public static final int HELO
public static final int HELP
public static final int LOGIN
public static final int LOGOUT
public static final int MAIL
public static final int MAIL_FROM
public static final int NOOP
public static final int QUIT
public static final int RCPT
public static final int RECIPIENT
public static final int RESET
public static final int RSET
public static final int SAML
public static final int SEND
public static final int SEND_AND_MAIL_FROM
public static final int SEND_FROM
public static final int SEND_MESSAGE_DATA
public static final int SEND_OR_MAIL_FROM
public static final int SOML
public static final int TURN
public static final int VERIFY
public static final int VRFY
public static final String getCommand(int command)
Retrieve the SMTP protocol command string corresponding to a specified
command code.
Parameters: command The command code.
Returns: The SMTP protcol command string corresponding to a specified
command code.