|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mime4j.field.address.Address
org.apache.james.mime4j.field.address.Mailbox
public class Mailbox
Represents a single e-mail address.
| Constructor Summary | |
|---|---|
Mailbox(DomainList route,
java.lang.String localPart,
java.lang.String domain)
Creates a mailbox with a route. |
|
Mailbox(java.lang.String localPart,
java.lang.String domain)
Creates a mailbox without a route. |
|
| Method Summary | |
|---|---|
protected void |
doAddMailboxesTo(java.util.ArrayList results)
Adds any mailboxes represented by this address into the given ArrayList. |
java.lang.String |
getAddressString()
Formats the address as a string, not including the route. |
java.lang.String |
getAddressString(boolean includeRoute)
Note that this value may not be usable for transport purposes, only display purposes. |
java.lang.String |
getDomain()
Returns the right part of the e-mail address (after "@"). |
java.lang.String |
getLocalPart()
Returns the left part of the e-mail address (before "@"). |
DomainList |
getRoute()
Returns the route list. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Mailbox(java.lang.String localPart,
java.lang.String domain)
localPart - The part of the e-mail address to the left of the "@".domain - The part of the e-mail address to the right of the "@".
public Mailbox(DomainList route,
java.lang.String localPart,
java.lang.String domain)
route - The zero or more domains that make up the route. Can be null.localPart - The part of the e-mail address to the left of the "@".domain - The part of the e-mail address to the right of the "@".| Method Detail |
|---|
public DomainList getRoute()
public java.lang.String getLocalPart()
public java.lang.String getDomain()
public java.lang.String getAddressString()
getAddressString(boolean)public java.lang.String getAddressString(boolean includeRoute)
includeRoute - true if the route should be included if it exists.protected final void doAddMailboxesTo(java.util.ArrayList results)
Address
doAddMailboxesTo in class Addresspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||