org.apache.struts.apps.mailreader.dao.impl
Class AbstractSubscription

java.lang.Object
  extended by org.apache.struts.apps.mailreader.dao.impl.AbstractSubscription
All Implemented Interfaces:
Subscription
Direct Known Subclasses:
MemorySubscription

public class AbstractSubscription
extends Object
implements Subscription

Concrete implementation of AbstractSubscription.

Since:
Struts 1.1
Version:
$Rev: 471754 $

Constructor Summary
AbstractSubscription(User 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
 

Constructor Detail

AbstractSubscription

public AbstractSubscription(User user,
                            String host)

Construct a new Subscription associated with the specified User.

Parameters:
user - The user with which we are associated
host - The mail host for this subscription
Method Detail

getAutoConnect

public boolean getAutoConnect()
Description copied from interface: Subscription
Return the auto-connect flag.

Specified by:
getAutoConnect in interface Subscription

setAutoConnect

public void setAutoConnect(boolean autoConnect)
Description copied from interface: Subscription
Set the auto-connect flag.

Specified by:
setAutoConnect in interface Subscription
Parameters:
autoConnect - The new auto-connect flag

getHost

public String getHost()
The mail host for this subscription.

Specified by:
getHost in interface Subscription

getPassword

public String getPassword()
Description copied from interface: Subscription
Return the password.

Specified by:
getPassword in interface Subscription

setPassword

public void setPassword(String password)
Description copied from interface: Subscription
Set the password.

Specified by:
setPassword in interface Subscription
Parameters:
password - The new password

getType

public String getType()
Description copied from interface: Subscription
Return the subscription type.

Specified by:
getType in interface Subscription

setType

public void setType(String type)
Description copied from interface: Subscription
Set the subscription type.

Specified by:
setType in interface Subscription
Parameters:
type - The new subscription type

getUser

public User getUser()
The User owning this Subscription.

Specified by:
getUser in interface Subscription

getUsername

public String getUsername()
Description copied from interface: Subscription
Return the username.

Specified by:
getUsername in interface Subscription

setUsername

public void setUsername(String username)
Description copied from interface: Subscription
Set the username.

Specified by:
setUsername in interface Subscription
Parameters:
username - The new username

toString

public String toString()
Return a String representation of this object.

Overrides:
toString in class Object


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.