public class Mailbox
extends Object
Note: RFC 5322 Internet Message Format also contains a mailbox production, but with different content. The addr-spec production of that RFC is the production which corresponds to this class.
| Constructor and Description |
|---|
Mailbox(String smtpText,
LocalPart localPart,
RemotePart remotePart) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
LocalPart |
getLocalPart() |
RemotePart |
getRemotePart() |
String |
getSmtpText()
Returns the raw mailbox, as it was supplied in the SMTP transaction.
|
int |
hashCode() |
String |
toString()
Returns the displayable form of the address.
|
public Mailbox(String smtpText,
LocalPart localPart,
RemotePart remotePart)
public LocalPart getLocalPart()
public RemotePart getRemotePart()
public String getSmtpText()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object