/******************************************************************************* * =========================================================== * Ankush : Big Data Cluster Management Solution * =========================================================== * * (C) Copyright 2014, by Impetus Technologies * * This is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License (LGPL v3) as * published by the Free Software Foundation; * * This software is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this software; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ******************************************************************************/ package com.impetus.ankush.common.mail; /** * MailConf is the class used to hold the object of mail configuration which is * used for sending mails. * * @author Vinay Kher */ public class MailConf { /** Stores ip/hostname of mail server. */ private String server; /** Stores port number on which mail service is operating. */ private int port; /** Stores the username of mail account used to send mail. */ private String userName; /** Stores the password of mail account used to send mail. */ private String password; /** Stores whether mail service is available over secured socket. */ private boolean secured; /** Stores email address of mail account */ private String emailAddress; /** * Gets the server. * * @return the server */ public String getServer() { return server; } /** * Sets the server. * * @param server the server to set */ public void setServer(String server) { this.server = server; } /** * Gets the port. * * @return the port */ public int getPort() { return port; } /** * Sets the port. * * @param port the port to set */ public void setPort(int port) { this.port = port; } /** * Gets the user name. * * @return the userName */ public String getUserName() { return userName; } /** * Sets the user name. * * @param userName the userName to set */ public void setUserName(String userName) { this.userName = userName; } /** * Gets the password. * * @return the password */ public String getPassword() { return password; } /** * Sets the password. * * @param password the password to set */ public void setPassword(String password) { this.password = password; } /** * Checks if is secured. * * @return the secured */ public boolean isSecured() { return secured; } /** * Sets the secured. * * @param secured the secured to set */ public void setSecured(boolean secured) { this.secured = secured; } /** * @return the emailAddress */ public String getEmailAddress() { return emailAddress; } /** * @param emailAddress the emailAddress to set */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } }