Class EmailServer

java.lang.Object
com.elpical.jclaro.admin.ws.server.EmailServer

public class EmailServer extends Object
Class holds information about access to the SMTP Email server
  • Constructor Details

    • EmailServer

      public EmailServer()
      Empty constructor for Email SMP settings
    • EmailServer

      public EmailServer(String server, String user, String password, boolean ssl, int sslPort)
      Constructor for Email SMP settings
      Parameters:
      server - The server host name
      user - The username for the SMTP server (optional)
      password - The password for the SMTP server (optional)
      ssl - Whether to use SFTP of FTP
      sslPort - If SSL is to be used which TCPIP port number to use
  • Method Details

    • getServer

      public String getServer()
      Returns the SMTP hostname
      Returns:
      The SMTP hostname
    • setServer

      public void setServer(String server)
      Sets the SMTP hostname
      Parameters:
      server - The SMTP hostname
    • getUser

      public String getUser()
      Returns the SMTP username
      Returns:
      The SMTP username
    • setUser

      public void setUser(String user)
      Sets the SMTP username
      Parameters:
      user - The SMTP username
    • getPassword

      public String getPassword()
      Returns the SMTP password
      Returns:
      The SMTP password
    • setPassword

      public void setPassword(String password)
      Sets the SMTP password
      Parameters:
      password - The SMTP password
    • isSsl

      public boolean isSsl()
      Returns whether to use SSL for the communication
      Returns:
      Whether to use SSL for the communication
    • setSsl

      public void setSsl(boolean ssl)
      Sets whether to use SSL for the communication
      Parameters:
      ssl - Whether to use SSL for the communication
    • getSslPort

      public int getSslPort()
      Returns the TCPIP port number to use for SSL communication
      Returns:
      The TCPIP port number to use for SSL communication
    • setSslPort

      public void setSslPort(int sslPort)
      Sets the TCPIP port number to use for SSL communication
      Parameters:
      sslPort - The TCPIP port number to use for SSL communication