View Javadoc

1   /***
2    * Jetrix TetriNET Server
3    * Copyright (C) 2009  Emmanuel Bourg
4    *
5    * This program is free software; you can redistribute it and/or
6    * modify it under the terms of the GNU General Public License
7    * as published by the Free Software Foundation; either version 2
8    * of the License, or (at your option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   * GNU General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License
16   * along with this program; if not, write to the Free Software
17   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18   */
19  
20  package net.jetrix.config;
21  
22  /***
23   * Configuration of the mail session.
24   *
25   * @author Emmanuel Bourg
26   * @version $Revision: 800 $, $Date: 2009-02-18 19:26:28 +0100 (Wed, 18 Feb 2009) $
27   */
28  public class MailSessionConfig
29  {
30      private String hostname;
31      private int port = 25;
32      private boolean auth;
33      private String username;
34      private String password;
35      private boolean debug;
36  
37      public String getHostname()
38      {
39          return hostname;
40      }
41  
42      public void setHostname(String hostname)
43      {
44          this.hostname = hostname;
45      }
46  
47      public int getPort()
48      {
49          return port;
50      }
51  
52      public void setPort(int port)
53      {
54          this.port = port;
55      }
56  
57      public boolean isAuth()
58      {
59          return auth;
60      }
61  
62      public void setAuth(boolean auth)
63      {
64          this.auth = auth;
65      }
66  
67      public String getUsername()
68      {
69          return username;
70      }
71  
72      public void setUsername(String username)
73      {
74          this.username = username;
75      }
76  
77      public String getPassword()
78      {
79          return password;
80      }
81  
82      public void setPassword(String password)
83      {
84          this.password = password;
85      }
86  
87      public boolean isDebug()
88      {
89          return debug;
90      }
91  
92      public void setDebug(boolean debug)
93      {
94          this.debug = debug;
95      }
96  }