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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe authorization commandstatic final intSMTP command 3.static final intThe extended hello commandstatic final intAlias for 9.static final intSMTP command 9.static final intAlias for 0.static final intSMTP command 0.static final intSMTP command 10.static final intAlias for 0.static final intAlias for 13.static final intSMTP command 1.static final intAlias for 1.static final intSMTP command 11.static final intSMTP command 13.static final intSMTP command 2.static final intAlias for 2.static final intAlias for 7.static final intSMTP command 7.static final intSMTP command 6.static final intSMTP command 4.static final intAlias for 6.static final intAlias for 4.static final intAlias for 3.static final intAlias for 5.static final intSMTP command 5.static final intSMTP command 12.static final intAlias for 8.static final intSMTP command 8.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetCommand(int command) Gets the SMTP protocol command string corresponding to a specified command code.
- 
Field Details- 
HELOSMTP command 0.- See Also:
 
- 
MAILSMTP command 1.- See Also:
 
- 
RCPTSMTP command 2.- See Also:
 
- 
DATASMTP command 3.- See Also:
 
- 
SENDSMTP command 4.- See Also:
 
- 
SOMLSMTP command 5.- See Also:
 
- 
SAMLSMTP command 6.- See Also:
 
- 
RSETSMTP command 7.- See Also:
 
- 
VRFYSMTP command 8.- See Also:
 
- 
EXPNSMTP command 9.- See Also:
 
- 
HELPSMTP command 10.- See Also:
 
- 
NOOPSMTP command 11.- See Also:
 
- 
TURNSMTP command 12.- See Also:
 
- 
QUITSMTP command 13.- See Also:
 
- 
AUTHThe authorization command- Since:
- 3.0
- See Also:
 
- 
EHLOThe extended hello command- Since:
- 3.0
- See Also:
 
- 
HELLOAlias for 0.- See Also:
 
- 
LOGINAlias for 0.- See Also:
 
- 
MAIL_FROMAlias for 1.- See Also:
 
- 
RECIPIENTAlias for 2.- See Also:
 
- 
SEND_MESSAGE_DATAAlias for 3.- See Also:
 
- 
SEND_FROMAlias for 4.- See Also:
 
- 
SEND_OR_MAIL_FROMAlias for 5.- See Also:
 
- 
SEND_AND_MAIL_FROMAlias for 6.- See Also:
 
- 
RESETAlias for 7.- See Also:
 
- 
VERIFYAlias for 8.- See Also:
 
- 
EXPANDAlias for 9.- See Also:
 
- 
LOGOUTAlias for 13.- See Also:
 
 
- 
- 
Method Details- 
getCommandGets 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.
 
 
-