Package org.apache.commons.net.smtp
Class SMTPCommand
- java.lang.Object
-
- org.apache.commons.net.smtp.SMTPCommand
-
public final class SMTPCommand extends java.lang.ObjectSMTPCommand 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 asHELOare provided where the constant name is the same as the SMTP command.
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTHThe authorization commandprivate static java.lang.String[]commandsstatic intDATASMTP command 3.static intEHLOThe extended hello commandstatic intEXPANDAlias for 9.static intEXPNSMTP command 9.static intHELLOAlias for 0.static intHELOSMTP command 0.static intHELPSMTP command 10.static intLOGINAlias for 0.static intLOGOUTAlias for 13.static intMAILSMTP command 1.static intMAIL_FROMAlias for 1.private static intNEXTstatic intNOOPSMTP command 11.static intQUITSMTP command 13.static intRCPTSMTP command 2.static intRECIPIENTAlias for 2.static intRESETAlias for 7.static intRSETSMTP command 7.static intSAMLSMTP command 6.static intSENDSMTP command 4.static intSEND_AND_MAIL_FROMAlias for 6.static intSEND_FROMAlias for 4.static intSEND_MESSAGE_DATAAlias for 3.static intSEND_OR_MAIL_FROMAlias for 5.static intSOMLSMTP command 5.static intTURNSMTP command 12.static intVERIFYAlias for 8.static intVRFYSMTP command 8.
-
Constructor Summary
Constructors Modifier Constructor Description privateSMTPCommand()Cannot be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetCommand(int command)Gets the SMTP protocol command string corresponding to a specified command code.
-
-
-
Field Detail
-
HELO
public static final int HELO
SMTP command 0.- See Also:
- Constant Field Values
-
MAIL
public static final int MAIL
SMTP command 1.- See Also:
- Constant Field Values
-
RCPT
public static final int RCPT
SMTP command 2.- See Also:
- Constant Field Values
-
DATA
public static final int DATA
SMTP command 3.- See Also:
- Constant Field Values
-
SEND
public static final int SEND
SMTP command 4.- See Also:
- Constant Field Values
-
SOML
public static final int SOML
SMTP command 5.- See Also:
- Constant Field Values
-
SAML
public static final int SAML
SMTP command 6.- See Also:
- Constant Field Values
-
RSET
public static final int RSET
SMTP command 7.- See Also:
- Constant Field Values
-
VRFY
public static final int VRFY
SMTP command 8.- See Also:
- Constant Field Values
-
EXPN
public static final int EXPN
SMTP command 9.- See Also:
- Constant Field Values
-
HELP
public static final int HELP
SMTP command 10.- See Also:
- Constant Field Values
-
NOOP
public static final int NOOP
SMTP command 11.- See Also:
- Constant Field Values
-
TURN
public static final int TURN
SMTP command 12.- See Also:
- Constant Field Values
-
QUIT
public static final int QUIT
SMTP command 13.- See Also:
- Constant Field Values
-
AUTH
public static final int AUTH
The authorization command- Since:
- 3.0
- See Also:
- Constant Field Values
-
EHLO
public static final int EHLO
The extended hello command- Since:
- 3.0
- See Also:
- Constant Field Values
-
NEXT
private static final int NEXT
- See Also:
- Constant Field Values
-
HELLO
public static final int HELLO
Alias for 0.- See Also:
- Constant Field Values
-
LOGIN
public static final int LOGIN
Alias for 0.- See Also:
- Constant Field Values
-
MAIL_FROM
public static final int MAIL_FROM
Alias for 1.- See Also:
- Constant Field Values
-
RECIPIENT
public static final int RECIPIENT
Alias for 2.- See Also:
- Constant Field Values
-
SEND_MESSAGE_DATA
public static final int SEND_MESSAGE_DATA
Alias for 3.- See Also:
- Constant Field Values
-
SEND_FROM
public static final int SEND_FROM
Alias for 4.- See Also:
- Constant Field Values
-
SEND_OR_MAIL_FROM
public static final int SEND_OR_MAIL_FROM
Alias for 5.- See Also:
- Constant Field Values
-
SEND_AND_MAIL_FROM
public static final int SEND_AND_MAIL_FROM
Alias for 6.- See Also:
- Constant Field Values
-
RESET
public static final int RESET
Alias for 7.- See Also:
- Constant Field Values
-
VERIFY
public static final int VERIFY
Alias for 8.- See Also:
- Constant Field Values
-
EXPAND
public static final int EXPAND
Alias for 9.- See Also:
- Constant Field Values
-
LOGOUT
public static final int LOGOUT
Alias for 13.- See Also:
- Constant Field Values
-
commands
private static final java.lang.String[] commands
-
-