Package org.apache.commons.net.smtp
Class SMTPCommand
java.lang.Object
org.apache.commons.net.smtp.SMTPCommand
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
Modifier and TypeFieldDescriptionstatic final int
The authorization commandstatic final int
SMTP command 3.static final int
The extended hello commandstatic 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 TypeMethodDescriptionstatic String
getCommand
(int command) Gets the SMTP protocol command string corresponding to a specified command code.
-
Field Details
-
HELO
SMTP command 0.- See Also:
-
MAIL
SMTP command 1.- See Also:
-
RCPT
SMTP command 2.- See Also:
-
DATA
SMTP command 3.- See Also:
-
SEND
SMTP command 4.- See Also:
-
SOML
SMTP command 5.- See Also:
-
SAML
SMTP command 6.- See Also:
-
RSET
SMTP command 7.- See Also:
-
VRFY
SMTP command 8.- See Also:
-
EXPN
SMTP command 9.- See Also:
-
HELP
SMTP command 10.- See Also:
-
NOOP
SMTP command 11.- See Also:
-
TURN
SMTP command 12.- See Also:
-
QUIT
SMTP command 13.- See Also:
-
AUTH
The authorization command- Since:
- 3.0
- See Also:
-
EHLO
The extended hello command- Since:
- 3.0
- See Also:
-
HELLO
Alias for 0.- See Also:
-
LOGIN
Alias for 0.- See Also:
-
MAIL_FROM
Alias for 1.- See Also:
-
RECIPIENT
Alias for 2.- See Also:
-
SEND_MESSAGE_DATA
Alias for 3.- See Also:
-
SEND_FROM
Alias for 4.- See Also:
-
SEND_OR_MAIL_FROM
Alias for 5.- See Also:
-
SEND_AND_MAIL_FROM
Alias for 6.- See Also:
-
RESET
Alias for 7.- See Also:
-
VERIFY
Alias for 8.- See Also:
-
EXPAND
Alias for 9.- See Also:
-
LOGOUT
Alias for 13.- See Also:
-
-
Method Details
-
getCommand
Gets the SMTP protocol command string corresponding to a specified command code.- Parameters:
command
- The command code.- Returns:
- The SMTP protocol command string corresponding to a specified command code.
-