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
FieldsModifier and TypeFieldDescriptionstatic final intThe authorization commandstatic final intstatic final intThe extended hello commandstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetCommand(int command) Retrieve the SMTP protocol command string corresponding to a specified command code.
-
Field Details
-
HELO
- See Also:
-
MAIL
- See Also:
-
RCPT
- See Also:
-
DATA
- See Also:
-
SEND
- See Also:
-
SOML
- See Also:
-
SAML
- See Also:
-
RSET
- See Also:
-
VRFY
- See Also:
-
EXPN
- See Also:
-
HELP
- See Also:
-
NOOP
- See Also:
-
TURN
- See Also:
-
QUIT
- See Also:
-
AUTH
The authorization command- Since:
- 3.0
- See Also:
-
EHLO
The extended hello command- Since:
- 3.0
- See Also:
-
HELLO
- See Also:
-
LOGIN
- See Also:
-
MAIL_FROM
- See Also:
-
RECIPIENT
- See Also:
-
SEND_MESSAGE_DATA
- See Also:
-
SEND_FROM
- See Also:
-
SEND_OR_MAIL_FROM
- See Also:
-
SEND_AND_MAIL_FROM
- See Also:
-
RESET
- See Also:
-
VERIFY
- See Also:
-
EXPAND
- See Also:
-
LOGOUT
- See Also:
-
-
Method Details
-
getCommand
Retrieve the SMTP protocol command string corresponding to a specified command code.- Parameters:
command- The command code.- Returns:
- The SMTP protcol command string corresponding to a specified command code.
-