|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ericdaugherty.mail.server.persistence.localDelivery.SimpleFileIOProcessor
public class SimpleFileIOProcessor
This class offers the means of persisting a message to a local user's mailbox.
Field Summary | |
---|---|
protected ConfigurationManager |
configurationManager
The ConfigurationManager |
Constructor Summary | |
---|---|
SimpleFileIOProcessor()
|
Method Summary | |
---|---|
void |
createUserRepository(java.lang.String userRepository)
|
long |
getMessagePersistedSize(User user,
java.lang.String messageLocation)
Returns a message's size on disk |
java.lang.String |
getUserRepository(User user)
Gets the user's directory as a String. |
java.lang.Object |
persistLocalMessage(User user,
SMTPMessage message,
EmailAddress address)
Saves a message to the user's directory and returns the full path/filename of the file where it was persisted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ConfigurationManager configurationManager
Constructor Detail |
---|
public SimpleFileIOProcessor()
Method Detail |
---|
public void createUserRepository(java.lang.String userRepository)
createUserRepository
in interface LocalDeliveryProcessor
public java.lang.String getUserRepository(User user)
getUserRepository
in interface LocalDeliveryProcessor
user
- The user the message belongs to.
public long getMessagePersistedSize(User user, java.lang.String messageLocation)
getMessagePersistedSize
in interface LocalDeliveryProcessor
user
- The user the message belongs to.messageLocation
- The message filename (this is not a full path, since it is generated by a list() file method).
public java.lang.Object persistLocalMessage(User user, SMTPMessage message, EmailAddress address) throws java.io.IOException
persistLocalMessage
in interface LocalDeliveryProcessor
user
- The user the message is addrressed to.message
- The message itself.address
- The user's email address.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |