Package ch.astorm.smtp4j.protocol
Class SmtpCommand
java.lang.Object
ch.astorm.smtp4j.protocol.SmtpCommand
List of SMTP commands.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the command's parameter.getType()Returns the command's type.static SmtpCommandParses thelineand creates a newSmtpCommand.toString()Returns this SMTP command in a printable format.
-
Constructor Details
-
SmtpCommand
Creates a newSmtpCommand.- Parameters:
type- The command type.param- The parameter.
-
-
Method Details
-
getType
Returns the command's type.- Returns:
- The command's type.
-
getParameter
Returns the command's parameter.- Returns:
- The command's parameter.
-
toString
Returns this SMTP command in a printable format. -
parse
Parses thelineand creates a newSmtpCommand. Iflineis null, this method directly returns null. In all other cases, a newSmtpCommandwill be returned.- Parameters:
line- The SMTP line.- Returns:
- A new
SmtpCommandor null.
-