rice.email.proxy.imap
Class ImapState
java.lang.Object
rice.email.proxy.imap.ImapState
-
public class ImapState
- extends java.lang.Object
Holds current session state.
TODO:
At the moment, the only state information is the current Mailbox
and MailFolder. Some of the methods (enterMailbox/Folder) are not
state related. In other words, state management and mailbox
access are going to need some major changes to be clean and work
correctly.
I'm thinking that the MailboxManager should probably be accessed
directly by commands, so this gets cleared out to contain nothing
but actual state data.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImapState
public ImapState(UserManager man,
Workspace workspace,
Environment env)
getEnvironment
public Environment getEnvironment()
-
createMovingMessage
public MovingMessage createMovingMessage()
-
getUser
public User getUser(java.lang.String username)
throws UserException
-
-
Throws:
UserException
getUser
public User getUser()
-
getPassword
public java.lang.String getPassword(java.lang.String username)
throws UserException
-
-
Throws:
UserException
setUser
public void setUser(User user)
throws UserException
-
-
Throws:
UserException
enterFolder
public void enterFolder(java.lang.String fold)
throws MailboxException
-
-
Throws:
MailboxException
getMailbox
public Mailbox getMailbox()
-
getFolder
public MailFolder getFolder(java.lang.String fold)
throws MailboxException
-
-
Throws:
MailboxException
getSelectedFolder
public MailFolder getSelectedFolder()
-
isAuthenticated
public boolean isAuthenticated()
-
isSelected
public boolean isSelected()
-
unselect
public void unselect()
-
logout
public void logout()
-
addUnsolicited
public void addUnsolicited(java.lang.String update)
-
broadcastUnsolicited
public void broadcastUnsolicited(java.lang.String update)
-
printUnsolicited
public void printUnsolicited(ImapConnection conn)
-
Copyright © 2001-2005 - Rice Pastry.