|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.struts.examples.mailreader.memory.MemorySubscription
Concrete implementation of Subscription for an in-memory
database backed by an XML data file.
| Field Summary | |
private boolean |
autoConnect
Should we auto-connect at startup time? |
private java.lang.String |
host
The mail host for this subscription. |
private java.lang.String |
password
The password (in clear text) for this subscription. |
private java.lang.String |
type
The subscription type ("imap" or "pop3"). |
private MemoryUser |
user
The User with which we are associated. |
private java.lang.String |
username
The username for this subscription. |
| Constructor Summary | |
MemorySubscription(MemoryUser user,
java.lang.String host)
Construct a new Subscription associated with the specified User. |
|
| Method Summary | |
boolean |
getAutoConnect()
Return the auto-connect flag. |
java.lang.String |
getHost()
The mail host for this subscription. |
java.lang.String |
getPassword()
Return the password. |
java.lang.String |
getType()
Return the subscription type. |
User |
getUser()
The User owning this Subscription. |
java.lang.String |
getUsername()
Return the username. |
void |
setAutoConnect(boolean autoConnect)
Set the auto-connect flag. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setType(java.lang.String type)
Set the subscription type. |
void |
setUsername(java.lang.String username)
Set the username. |
java.lang.String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.lang.String host
private MemoryUser user
User with which we are associated.private boolean autoConnect
private java.lang.String password
private java.lang.String type
private java.lang.String username
| Constructor Detail |
public MemorySubscription(MemoryUser user,
java.lang.String host)
Construct a new Subscription associated with the specified
User.
user - The user with which we are associatedhost - The mail host for this subscription| Method Detail |
public boolean getAutoConnect()
SubscriptiongetAutoConnect in interface Subscriptionpublic void setAutoConnect(boolean autoConnect)
SubscriptionsetAutoConnect in interface Subscriptionorg.apache.struts.examples.mailreader.SubscriptionautoConnect - The new auto-connect flagpublic java.lang.String getHost()
getHost in interface Subscriptionpublic java.lang.String getPassword()
SubscriptiongetPassword in interface Subscriptionpublic void setPassword(java.lang.String password)
SubscriptionsetPassword in interface Subscriptionorg.apache.struts.examples.mailreader.Subscriptionpassword - The new passwordpublic java.lang.String getType()
SubscriptiongetType in interface Subscriptionpublic void setType(java.lang.String type)
SubscriptionsetType in interface Subscriptionorg.apache.struts.examples.mailreader.Subscriptiontype - The new subscription typepublic User getUser()
getUser in interface Subscriptionpublic java.lang.String getUsername()
SubscriptiongetUsername in interface Subscriptionpublic void setUsername(java.lang.String username)
SubscriptionsetUsername in interface Subscriptionorg.apache.struts.examples.mailreader.Subscriptionusername - The new usernamepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||