Package mireka.address
Class Mailbox
- Object
-
- mireka.address.Mailbox
-
public class Mailbox extends ObjectCorresponds to the Mailbox production in RFC 5321, basically a LOCAL_PART@REMOTE_PART element.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.
- See Also:
- RFC 5321 4.1.2
-
-
Constructor Summary
Constructors Constructor Description Mailbox(String smtpText, LocalPart localPart, RemotePart remotePart)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LocalPartgetLocalPart()RemotePartgetRemotePart()StringgetSmtpText()Returns the raw mailbox, as it was supplied in the SMTP transaction.inthashCode()StringtoString()Returns the displayable form of the address.
-
-
-
Constructor Detail
-
Mailbox
public Mailbox(String smtpText, LocalPart localPart, RemotePart remotePart)
-
-
Method Detail
-
getLocalPart
public LocalPart getLocalPart()
-
getRemotePart
public RemotePart getRemotePart()
-
getSmtpText
public String getSmtpText()
Returns the raw mailbox, as it was supplied in the SMTP transaction.
-
toString
public String toString()
Returns the displayable form of the address.- Overrides:
toStringin classObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject
-
-