Package mireka.address
Class LocalPart
- Object
-
- mireka.address.LocalPart
-
public class LocalPart extends ObjectLocalPart contains the local part of a forward path (usually a mailbox) which appeared as the recipient in an RCPT command submitted by an SMTP client, for example "john" if the recipient was john@example.com. An SMTP server must preserve the case of its characters, it must not assume that the corresponding mailbox name is case insensitive. However, a mailbox name should indeed be case insensitive.
-
-
Constructor Summary
Constructors Constructor Description LocalPart(String escapedText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdisplayableName()Returns the unescaped mailbox name, which means that escaping constructs are replaced by their represented value.StringsmtpText()Returns the escaped / quoted local-part string as received from the remote SMTP client.StringtoString()The same asdisplayableName().
-
-
-
Method Detail
-
displayableName
public String displayableName()
Returns the unescaped mailbox name, which means that escaping constructs are replaced by their represented value. For example if the raw string received is "Joe\,Smith", then this function returns "Joe,Smith", without the quotes. However, unescaping is not implemented currently, this function simply returns the raw text.
-
smtpText
public String smtpText()
Returns the escaped / quoted local-part string as received from the remote SMTP client.
-
toString
public String toString()
The same asdisplayableName().- Overrides:
toStringin classObject
-
-