001    /**
002     * Jetrix TetriNET Server
003     * Copyright (C) 2009  Emmanuel Bourg
004     *
005     * This program is free software; you can redistribute it and/or
006     * modify it under the terms of the GNU General Public License
007     * as published by the Free Software Foundation; either version 2
008     * of the License, or (at your option) any later version.
009     *
010     * This program is distributed in the hope that it will be useful,
011     * but WITHOUT ANY WARRANTY; without even the implied warranty of
012     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013     * GNU General Public License for more details.
014     *
015     * You should have received a copy of the GNU General Public License
016     * along with this program; if not, write to the Free Software
017     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
018     */
019    
020    package net.jetrix.config;
021    
022    /**
023     * Configuration of the mail session.
024     *
025     * @author Emmanuel Bourg
026     * @version $Revision: 800 $, $Date: 2009-02-18 19:26:28 +0100 (Wed, 18 Feb 2009) $
027     */
028    public class MailSessionConfig
029    {
030        private String hostname;
031        private int port = 25;
032        private boolean auth;
033        private String username;
034        private String password;
035        private boolean debug;
036    
037        public String getHostname()
038        {
039            return hostname;
040        }
041    
042        public void setHostname(String hostname)
043        {
044            this.hostname = hostname;
045        }
046    
047        public int getPort()
048        {
049            return port;
050        }
051    
052        public void setPort(int port)
053        {
054            this.port = port;
055        }
056    
057        public boolean isAuth()
058        {
059            return auth;
060        }
061    
062        public void setAuth(boolean auth)
063        {
064            this.auth = auth;
065        }
066    
067        public String getUsername()
068        {
069            return username;
070        }
071    
072        public void setUsername(String username)
073        {
074            this.username = username;
075        }
076    
077        public String getPassword()
078        {
079            return password;
080        }
081    
082        public void setPassword(String password)
083        {
084            this.password = password;
085        }
086    
087        public boolean isDebug()
088        {
089            return debug;
090        }
091    
092        public void setDebug(boolean debug)
093        {
094            this.debug = debug;
095        }
096    }