|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.webapp.example.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 String |
host
The mail host for this subscription. |
private String |
password
The password (in clear text) for this subscription. |
private String |
type
The subscription type ("imap" or "pop3"). |
private MemoryUser |
user
The User with which we are associated. |
private String |
username
The username for this subscription. |
Constructor Summary | |
MemorySubscription(MemoryUser user,
String host)
Construct a new Subscription associated with the specified User . |
Method Summary | |
boolean |
getAutoConnect()
Return the auto-connect flag. |
String |
getHost()
The mail host for this subscription. |
String |
getPassword()
Return the password. |
String |
getType()
Return the subscription type. |
User |
getUser()
The User owning this Subscription. |
String |
getUsername()
Return the username. |
void |
setAutoConnect(boolean autoConnect)
Set the auto-connect flag. |
void |
setPassword(String password)
Set the password. |
void |
setType(String type)
Set the subscription type. |
void |
setUsername(String username)
Set the username. |
String |
toString()
Return a String representation of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String host
private MemoryUser user
User
with which we are associated.
private boolean autoConnect
private String password
private String type
private String username
Constructor Detail |
public MemorySubscription(MemoryUser user, String host)
Construct a new Subscription associated with the specified User
.
user
- The user with which we are associatedhost
- The mail host for this subscriptionMethod Detail |
public boolean getAutoConnect()
Subscription
getAutoConnect
in interface Subscription
public void setAutoConnect(boolean autoConnect)
Subscription
setAutoConnect
in interface Subscription
autoConnect
- The new auto-connect flagpublic String getHost()
getHost
in interface Subscription
public String getPassword()
Subscription
getPassword
in interface Subscription
public void setPassword(String password)
Subscription
setPassword
in interface Subscription
password
- The new passwordpublic String getType()
Subscription
getType
in interface Subscription
public void setType(String type)
Subscription
setType
in interface Subscription
type
- The new subscription typepublic User getUser()
getUser
in interface Subscription
public String getUsername()
Subscription
getUsername
in interface Subscription
public void setUsername(String username)
Subscription
setUsername
in interface Subscription
username
- The new usernamepublic String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |