NamedMailboxpublic class NamedMailbox extends Mailbox A Mailbox that has a name/description. |
Fields Summary |
---|
private String | name |
Constructors Summary |
---|
public NamedMailbox(String name, String localPart, String domain)
super(localPart, domain);
this.name = name;
| public NamedMailbox(String name, DomainList route, String localPart, String domain)
super(route, localPart, domain);
this.name = name;
| public NamedMailbox(String name, Mailbox baseMailbox)Creates a named mailbox based on an unnamed mailbox.
super(baseMailbox.getRoute(), baseMailbox.getLocalPart(), baseMailbox.getDomain());
this.name = name;
|
Methods Summary |
---|
public java.lang.String | getAddressString(boolean includeRoute)Same features (or problems) as Mailbox.getAddressString(boolean),
only more so.
return (name == null ? "" : name + " ") + super.getAddressString(includeRoute);
| public java.lang.String | getName()Returns the name of the mailbox.
return this.name;
|
|