|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.email.proxy.mailbox.postbox.PostMailbox
public class PostMailbox
This class serves as the main "glue" code between foedus and the POST-based email implementation.
| Field Summary | |
|---|---|
protected EmailService |
email
|
static java.lang.String |
HIERARCHY_DELIMITER
|
protected PostFolder |
root
|
| Constructor Summary | |
|---|---|
PostMailbox(EmailService email,
Folder root,
Environment env)
Constructs a PostMailbox given an emailservice to run off of. |
|
| Method Summary | |
|---|---|
void |
createFolder(java.lang.String name)
Creates a folder with the given name. |
void |
deleteFolder(java.lang.String name)
Deletes the folder associated with the given name. |
MailFolder |
getFolder(java.lang.String name)
Fetches a given folder name. |
java.lang.String |
getHierarchyDelimiter()
Returns the hierarchy delimiter used by this mailbox |
MailFolder |
getRootFolder()
Returns the root folder of the user's mailbox. |
protected MailFolder[] |
listFolders()
Lists all folders |
MailFolder[] |
listFolders(java.lang.String pattern)
Lists all folders which match the provided pattern |
java.lang.String[] |
listSubscriptions(java.lang.String pattern)
|
void |
put(MovingMessage msg)
Adds the given message to this folder |
void |
renameFolder(java.lang.String old_name,
java.lang.String new_name)
Renames the given folder to the new name. |
void |
subscribe(java.lang.String fullName)
|
void |
unsubscribe(java.lang.String fullName)
|
protected void |
walk(PostFolder folder,
java.util.Vector result)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EmailService email
protected PostFolder root
public static java.lang.String HIERARCHY_DELIMITER
| Constructor Detail |
|---|
public PostMailbox(EmailService email,
Folder root,
Environment env)
throws MailboxException
email - The email service on the local pastry node.
MailboxException| Method Detail |
|---|
public java.lang.String getHierarchyDelimiter()
getHierarchyDelimiter in interface Mailbox
public MailFolder getRootFolder()
throws MailboxException
MailboxException - If an error occurs.
public void put(MovingMessage msg)
throws MailboxException
put in interface Mailbox
msg - The message to add
MailboxException
public void createFolder(java.lang.String name)
throws MailboxException
createFolder in interface Mailbox
folder - The name to create
MailboxException
public MailFolder getFolder(java.lang.String name)
throws MailboxException
getFolder in interface Mailbox
name - The name of the folder
MailboxException
protected MailFolder[] listFolders()
throws MailboxException
MailboxException
public MailFolder[] listFolders(java.lang.String pattern)
throws MailboxException
listFolders in interface Mailbox
pattern - The pattern to match against
MailboxException
public void renameFolder(java.lang.String old_name,
java.lang.String new_name)
throws MailboxException
renameFolder in interface Mailbox
old_name - The current namenew_name - The new name
MailboxException
public void deleteFolder(java.lang.String name)
throws MailboxException
deleteFolder in interface Mailbox
name - The name of the folder to delete
MailboxException
protected void walk(PostFolder folder,
java.util.Vector result)
throws MailboxException
MailboxException
public void subscribe(java.lang.String fullName)
throws MailboxException
subscribe in interface Mailbox
MailboxException
public void unsubscribe(java.lang.String fullName)
throws MailboxException
unsubscribe in interface Mailbox
MailboxException
public java.lang.String[] listSubscriptions(java.lang.String pattern)
throws MailboxException
listSubscriptions in interface Mailbox
MailboxException
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||