com.atlassian.mail.server
Class AbstractMailServer

java.lang.Object
  extended by com.atlassian.mail.server.AbstractMailServer
All Implemented Interfaces:
MailServer, Serializable
Direct Known Subclasses:
PopMailServerImpl, SMTPMailServerImpl

public abstract class AbstractMailServer
extends Object
implements MailServer, Serializable

See Also:
Serialized Form

Field Summary
protected  Category LOG
           
 
Constructor Summary
AbstractMailServer()
           
AbstractMailServer(Long id, String name, String description, String hostName, String username, String password)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDescription()
           
 String getHostname()
           
 Long getId()
           
 String getName()
           
 String getPassword()
           
 String getUsername()
           
 int hashCode()
           
protected  void propertyChanged()
          Call this method whenever a property of the server changes.
 void setDescription(String description)
           
 void setHostname(String serverName)
           
 void setId(Long id)
           
 void setName(String name)
           
 void setPassword(String password)
           
 void setUsername(String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.mail.server.MailServer
getSession, getType
 

Field Detail

LOG

protected transient Category LOG
Constructor Detail

AbstractMailServer

public AbstractMailServer()

AbstractMailServer

public AbstractMailServer(Long id,
                          String name,
                          String description,
                          String hostName,
                          String username,
                          String password)
Method Detail

getId

public Long getId()
Specified by:
getId in interface MailServer

setId

public void setId(Long id)
Specified by:
setId in interface MailServer

getName

public String getName()
Specified by:
getName in interface MailServer

setName

public void setName(String name)
Specified by:
setName in interface MailServer

getDescription

public String getDescription()
Specified by:
getDescription in interface MailServer

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface MailServer

getHostname

public String getHostname()
Specified by:
getHostname in interface MailServer

setHostname

public void setHostname(String serverName)
Specified by:
setHostname in interface MailServer

getUsername

public String getUsername()
Specified by:
getUsername in interface MailServer

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface MailServer

getPassword

public String getPassword()
Specified by:
getPassword in interface MailServer

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface MailServer

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

propertyChanged

protected void propertyChanged()
Call this method whenever a property of the server changes. Subclasses should override it to clear any cached information.



Atlassian Mail is developed by Atlassian Software Systems.