public class MailboxPath extends Object
Constructor and Description |
---|
MailboxPath(MailboxPath mailboxPath) |
MailboxPath(MailboxPath mailboxPath,
String name) |
MailboxPath(String namespace,
String user,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object mailboxPath) |
String |
getFullName(char delimiter)
|
List<MailboxPath> |
getHierarchyLevels(char delimiter)
Return a list of MailboxPath representing the hierarchy levels of this
MailboxPath.
|
String |
getName()
Get the name of the mailbox.
|
String |
getNamespace()
Get the namespace this mailbox is in
|
String |
getUser()
Get the name of the user who owns the mailbox.
|
int |
hashCode() |
static MailboxPath |
inbox(MailboxSession session)
Return a
MailboxPath which represent the INBOX of the given
session |
static MailboxPath |
parse(MailboxSession session,
String fullmailboxname)
Create a
MailboxPath by parsing the given full mailboxname (which included the namespace) |
void |
setName(String name)
Set the name of the mailbox.
|
void |
setNamespace(String namespace)
Set the namespace this mailbox is in
|
void |
setUser(String user)
Set the name of the user who owns the mailbox.
|
String |
toString() |
public MailboxPath(MailboxPath mailboxPath)
public MailboxPath(MailboxPath mailboxPath, String name)
public String getNamespace()
public void setNamespace(String namespace)
public String getUser()
public void setUser(String user)
public String getName()
public void setName(String name)
public List<MailboxPath> getHierarchyLevels(char delimiter)
INBOX INBOX.main INBOX.main.sub
delimiter
- public String getFullName(char delimiter)
delimiter
- public static MailboxPath inbox(MailboxSession session)
MailboxPath
which represent the INBOX of the given
sessionsession
- public static MailboxPath parse(MailboxSession session, String fullmailboxname)
MailboxPath
by parsing the given full mailboxname (which included the namespace)session
- fullmailboxname
- Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.