|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 MessageStoreInterface
msgs
- the array of Message objects which will each be stored.
java.io.IOException
- exceptionpublic void storeMessage(Message msg, Address to) throws java.io.IOException
storeMessage
in interface MessageStoreInterface
msg
- the Message object which will be stored.
java.io.IOException
- exceptionpublic Message[] getMessages(User user) throws java.io.IOException
getMessages
in interface MessageStoreInterface
user
- 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 |