jSyncManager Simple Java Server

org.jSyncManager.SJS.Adapters.SMTPServer
Interface MessageStoreInterface

All Known Implementing Classes:
Mbox

public interface MessageStoreInterface

An interface to define the methods used to store and retrieve messages from some medium.

Author:
Torben Werner

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.
 

Method Detail

getMessages

Message[] getMessages(User user)
                      throws java.io.IOException
Returns an array of all the messages stored in a valid user's mbox.

Parameters:
user - the User who's messages will be retrieved.
Returns:
an array of Message objects representing each of the user's messages.
Throws:
java.io.IOException

storeMessages

void storeMessages(Message[] msgs)
                   throws java.io.IOException
Stores an array of Message objects to some medium where they can later be retrieved.

Parameters:
msgs - the array of Message objects which will each be stored.
Throws:
java.io.IOException - exception

storeMessage

void storeMessage(Message msg,
                  Address to)
                  throws java.io.IOException
Stores a single Message object to some medium where it can later be retrieved.

Parameters:
msg - the Message object which will be stored.
Throws:
java.io.IOException - exception

jSyncManager Simple Java Server

Copyright (c) 2004 Brad BARCLAY. All Rights Reserved.