|
jSyncManager Simple Java Server | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.Mbox
public class Mbox
This class implements the MessageStore interface by storing and retrieving messages to and from a file formatted according to the mbox specifications.
| Field Summary | |
|---|---|
static java.lang.String |
PATH_SEP
Convenience variable for the directory path separator |
| Constructor Summary | |
|---|---|
Mbox()
Constructor, default, empty |
|
| Method Summary | |
|---|---|
Message[] |
getMessages(User user)
Returns an array of all the messages stored in a valid user's mbox. |
void |
storeMessage(Message msg,
Address to)
Stores a single Message object to some medium where it can later be retrieved. |
void |
storeMessages(Message[] msgs)
Stores an array of Message objects to some medium where they can later be retrieved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_SEP
| Constructor Detail |
|---|
public Mbox()
| Method Detail |
|---|
public void storeMessages(Message[] msgs)
throws java.io.IOException
storeMessages in interface MessageStoreInterfacemsgs - the array of Message objects which will each be stored.
java.io.IOException - exception
public void storeMessage(Message msg,
Address to)
throws java.io.IOException
storeMessage in interface MessageStoreInterfacemsg - the Message object which will be stored.
java.io.IOException - exception
public Message[] getMessages(User user)
throws java.io.IOException
getMessages in interface MessageStoreInterfaceuser - the User who's messages will be retrieved.
java.io.IOException
|
jSyncManager Simple Java Server | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||