Class SMTPCommand

java.lang.Object
org.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 HELO are provided where the constant name is the same as the SMTP command.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The authorization command
    static final int
    SMTP command 3.
    static final int
    The extended hello command
    static final int
    Alias for 9.
    static final int
    SMTP command 9.
    static final int
    Alias for 0.
    static final int
    SMTP command 0.
    static final int
    SMTP command 10.
    static final int
    Alias for 0.
    static final int
    Alias for 13.
    static final int
    SMTP command 1.
    static final int
    Alias for 1.
    static final int
    SMTP command 11.
    static final int
    SMTP command 13.
    static final int
    SMTP command 2.
    static final int
    Alias for 2.
    static final int
    Alias for 7.
    static final int
    SMTP command 7.
    static final int
    SMTP command 6.
    static final int
    SMTP command 4.
    static final int
    Alias for 6.
    static final int
    Alias for 4.
    static final int
    Alias for 3.
    static final int
    Alias for 5.
    static final int
    SMTP command 5.
    static final int
    SMTP command 12.
    static final int
    Alias for 8.
    static final int
    SMTP command 8.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getCommand(int command)
    Gets the SMTP protocol command string corresponding to a specified command code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait