FileDocCategorySizeDatePackage
SMTPCommand.javaAPI DocApache Commons NET 1.4.1 API3187Sat Dec 03 10:05:50 GMT 2005org.apache.commons.net.smtp

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

Fields Summary
public static final int
HELO
public static final int
MAIL
public static final int
RCPT
public static final int
DATA
public static final int
SEND
public static final int
SOML
public static final int
SAML
public static final int
RSET
public static final int
VRFY
public static final int
EXPN
public static final int
HELP
public static final int
NOOP
public static final int
TURN
public static final int
QUIT
public static final int
HELLO
public static final int
LOGIN
public static final int
MAIL_FROM
public static final int
RECIPIENT
public static final int
SEND_MESSAGE_DATA
public static final int
SEND_FROM
public static final int
SEND_OR_MAIL_FROM
public static final int
SEND_AND_MAIL_FROM
public static final int
RESET
public static final int
VERIFY
public static final int
EXPAND
public static final int
LOGOUT
static final String[]
_commands
Constructors Summary
private SMTPCommand()


    // Cannot be instantiated
     
    
Methods Summary
public static final java.lang.StringgetCommand(int command)
Retrieve the SMTP protocol command string corresponding to a specified command code.

param
command The command code.
return
The SMTP protcol command string corresponding to a specified command code.



                                               
         
    
        return _commands[command];