org.apache.struts.webapp.example
Interface Subscription

All Known Implementing Classes:
MemorySubscription

public interface Subscription

A Subscription which is stored, along with the associated User, in a UserDatabase.

Version:
$Revision: 187140 $ $Date: 2004-07-30 00:23:04 +0200 (Fri, 30 Jul 2004) $

Method Summary
 boolean getAutoConnect()
          Return the auto-connect flag.
 String getHost()
          Return the host name.
 String getPassword()
          Return the password.
 String getType()
          Return the subscription type.
 User getUser()
          Return 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.
 

Method Detail

getAutoConnect

public boolean getAutoConnect()
Return the auto-connect flag.


setAutoConnect

public void setAutoConnect(boolean autoConnect)
Set the auto-connect flag.

Parameters:
autoConnect - The new auto-connect flag

getHost

public String getHost()
Return the host name.


getPassword

public String getPassword()
Return the password.


setPassword

public void setPassword(String password)
Set the password.

Parameters:
password - The new password

getType

public String getType()
Return the subscription type.


setType

public void setType(String type)
Set the subscription type.

Parameters:
type - The new subscription type

getUser

public User getUser()
Return the User owning this Subscription.


getUsername

public String getUsername()
Return the username.


setUsername

public void setUsername(String username)
Set the username.

Parameters:
username - The new username


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.