Package mireka.transmission.immediate
Class Rfc821Status
- Object
-
- mireka.transmission.immediate.Rfc821Status
-
- All Implemented Interfaces:
MailSystemStatus
public class Rfc821Status extends Object implements MailSystemStatus
This class represents an SMTP status which does not include enhanced status code.
-
-
Constructor Summary
Constructors Constructor Description Rfc821Status(org.subethamail.smtp.client.SMTPClient.Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDiagnosticCode()Returns the original response without any parsing, for example old SMTP and new enhanced codes are included on every line (if they were present).StringgetMessage()Returns the extracted text message, SMTP and enhanced status codes are removed.intgetSmtpReplyCode()returns the original 3 digit reply codes, compatible with the original SMTP RFC.StringtoString()
-
-
-
Method Detail
-
getSmtpReplyCode
public int getSmtpReplyCode()
Description copied from interface:MailSystemStatusreturns the original 3 digit reply codes, compatible with the original SMTP RFC.- Specified by:
getSmtpReplyCodein interfaceMailSystemStatus- See Also:
- rfc5321 - 4.2. SMTP Replies
-
getMessage
public String getMessage()
Description copied from interface:MailSystemStatusReturns the extracted text message, SMTP and enhanced status codes are removed. The result may consists of one or more lines.- Specified by:
getMessagein interfaceMailSystemStatus
-
getDiagnosticCode
public String getDiagnosticCode()
Description copied from interface:MailSystemStatusReturns the original response without any parsing, for example old SMTP and new enhanced codes are included on every line (if they were present).
-
toString
public String toString()
- Overrides:
toStringin classObject
-
-