FileDocCategorySizeDatePackage
NamedMailbox.javaAPI DocAndroid 1.5 API2439Wed May 06 22:42:46 BST 2009org.apache.james.mime4j.field.address

NamedMailbox

public 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)

see
Mailbox#Mailbox(String, String)

		super(localPart, domain);
		this.name = name;
	
public NamedMailbox(String name, DomainList route, String localPart, String domain)

see
Mailbox#Mailbox(DomainList, String, String)

		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.StringgetAddressString(boolean includeRoute)
Same features (or problems) as Mailbox.getAddressString(boolean), only more so.

see
Mailbox#getAddressString(boolean)

		return (name == null ? "" : name + " ") + super.getAddressString(includeRoute);
	
public java.lang.StringgetName()
Returns the name of the mailbox.

		return this.name;