|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--apps.email.db.Account
Stores information about a particular e-mail account.
| Constructor Summary | |
Account(int userid,
java.lang.String email,
java.lang.String password,
java.lang.String host,
java.lang.String protocol)
Constructs a new Account |
|
| Method Summary | |
java.lang.String |
getEmail()
Retrieves the email address. |
javax.mail.Folder |
getFolder()
Retreives the Folder object. |
java.lang.String |
getHost()
Retrieves the host server. |
java.lang.String |
getPassword()
Retrieves the password. |
javax.mail.Session |
getSession()
Retrieves the session. |
javax.mail.Store |
getStore()
Retreives the Store object. |
int |
getUserd()
Retrieves the user id. |
boolean |
reconnectToEmailFolder()
Attempts to reconnect to the email folder if the folder is closed or locked. |
void |
setFolder(javax.mail.Folder f)
Sets the folder. |
void |
setSession(javax.mail.Session s)
Sets the session. |
void |
setStore(javax.mail.Store s)
Sets the store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Account(int userid,
java.lang.String email,
java.lang.String password,
java.lang.String host,
java.lang.String protocol)
userid - The unique useridemail - The e-mail addresspassword - The passwordhost - The host of the e-mail server (i.e. pop.cc.columbia.edu)protocol - The protocol (i.e. IMAP, POP3)| Method Detail |
public boolean reconnectToEmailFolder()
public int getUserd()
public java.lang.String getEmail()
public java.lang.String getPassword()
public java.lang.String getHost()
public javax.mail.Session getSession()
public void setSession(javax.mail.Session s)
s - the sessionpublic javax.mail.Store getStore()
public void setStore(javax.mail.Store s)
s - the storepublic javax.mail.Folder getFolder()
public void setFolder(javax.mail.Folder f)
f - the folder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||