com.oroinc.net.smtp
Class SMTPCommand
java.lang.Object
|
+--com.oroinc.net.smtp.SMTPCommand
- public final class SMTPCommand
- extends java.lang.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.
- Author:
- Daniel F. Savarese
Method Summary |
static java.lang.String |
getCommand(int command)
Retrieve 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 |
HELO
public static final int HELO
MAIL
public static final int MAIL
RCPT
public static final int RCPT
DATA
public static final int DATA
SEND
public static final int SEND
SOML
public static final int SOML
SAML
public static final int SAML
RSET
public static final int RSET
VRFY
public static final int VRFY
EXPN
public static final int EXPN
HELP
public static final int HELP
NOOP
public static final int NOOP
TURN
public static final int TURN
QUIT
public static final int QUIT
HELLO
public static final int HELLO
LOGIN
public static final int LOGIN
MAIL_FROM
public static final int MAIL_FROM
RECIPIENT
public static final int RECIPIENT
SEND_MESSAGE_DATA
public static final int SEND_MESSAGE_DATA
SEND_FROM
public static final int SEND_FROM
SEND_OR_MAIL_FROM
public static final int SEND_OR_MAIL_FROM
SEND_AND_MAIL_FROM
public static final int SEND_AND_MAIL_FROM
RESET
public static final int RESET
VERIFY
public static final int VERIFY
EXPAND
public static final int EXPAND
LOGOUT
public static final int LOGOUT
getCommand
public static final java.lang.String getCommand(int command)
- Retrieve the SMTP protocol command string corresponding to a specified
command code.
- Parameters:
The
- command code.- Returns:
- The SMTP protcol command string corresponding to a specified
command code.
Copyright © 1997-2002 Daniel F. Savarese. All Rights Reserved.