ePOST API

rice.email.proxy.mailbox.filebox
Class FileMailbox

java.lang.Object
  extended by rice.email.proxy.mailbox.filebox.FileMailbox
All Implemented Interfaces:
Mailbox

public class FileMailbox
extends java.lang.Object
implements Mailbox


Nested Class Summary
static class FileMailbox.PatternConverter
           
 
Constructor Summary
FileMailbox(java.io.File folder, Environment env)
           
 
Method Summary
 void createFolder(java.lang.String folder)
           
 void deleteFolder(java.lang.String folder)
           
 MailFolder getFolder(java.lang.String folder)
           
 java.lang.String getHierarchyDelimiter()
           
 MailFolder[] listFolders(java.lang.String pattern)
           
 java.lang.String[] listSubscriptions(java.lang.String pattern)
           
 void put(MovingMessage msg)
           
 void renameFolder(java.lang.String old_name, java.lang.String new_name)
           
 void subscribe(java.lang.String fullName)
           
 void unsubscribe(java.lang.String fullName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileMailbox

public FileMailbox(java.io.File folder,
                   Environment env)
            throws NoSuchMailboxException
Throws:
NoSuchMailboxException
Method Detail

getHierarchyDelimiter

public java.lang.String getHierarchyDelimiter()
Specified by:
getHierarchyDelimiter in interface Mailbox

put

public void put(MovingMessage msg)
         throws MailboxException
Specified by:
put in interface Mailbox
Throws:
MailboxException

renameFolder

public void renameFolder(java.lang.String old_name,
                         java.lang.String new_name)
                  throws MailboxException
Specified by:
renameFolder in interface Mailbox
Throws:
MailboxException

getFolder

public MailFolder getFolder(java.lang.String folder)
                     throws MailboxException
Specified by:
getFolder in interface Mailbox
Throws:
MailboxException

createFolder

public void createFolder(java.lang.String folder)
                  throws MailboxException
Specified by:
createFolder in interface Mailbox
Throws:
MailboxException

deleteFolder

public void deleteFolder(java.lang.String folder)
                  throws MailboxException
Specified by:
deleteFolder in interface Mailbox
Throws:
MailboxException

listFolders

public MailFolder[] listFolders(java.lang.String pattern)
                         throws MailboxException
Specified by:
listFolders in interface Mailbox
Throws:
MailboxException

subscribe

public void subscribe(java.lang.String fullName)
               throws MailboxException
Specified by:
subscribe in interface Mailbox
Throws:
MailboxException

unsubscribe

public void unsubscribe(java.lang.String fullName)
                 throws MailboxException
Specified by:
unsubscribe in interface Mailbox
Throws:
MailboxException

listSubscriptions

public java.lang.String[] listSubscriptions(java.lang.String pattern)
                                     throws MailboxException
Specified by:
listSubscriptions in interface Mailbox
Throws:
MailboxException

ePOST API

Copyright © 2001-2005 - Rice Pastry.