View Javadoc

1   /*
2    * Created by IntelliJ IDEA.
3    * User: owen
4    * Date: Nov 22, 2002
5    * Time: 3:49:49 PM
6    * CVS Revision: $Revision: 1.5 $
7    * Last CVS Commit: $Date: 2003/11/19 00:31:19 $
8    * Author of last CVS Commit: $Author: ofellows $
9    * To change this template use Options | File Templates.
10   */
11  package com.atlassian.mail.server;
12  
13  import alt.javax.mail.Session;
14  import com.atlassian.mail.MailException;
15  
16  import javax.naming.NamingException;
17  
18  public interface MailServer
19  {
20      Long getId();
21  
22      String getName();
23  
24      String getDescription();
25  
26      String getType();
27  
28      String getHostname();
29  
30      String getUsername();
31  
32      String getPassword();
33  
34      Session getSession() throws NamingException, MailException;
35  
36      void setName(String name);
37  
38      void setDescription(String description);
39  
40      void setHostname(String hostname);
41  
42      void setUsername(String username);
43  
44      void setPassword(String password);
45  
46      void setId(Long id);
47  }