Class EmailAccount


  • public class EmailAccount
    extends java.lang.Object
    Email account data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String host
      The smtp host address.
      protected java.lang.String password
      The user password.
      protected java.lang.Integer port
      The smpt host port.
      protected java.lang.String sender
      The sender email.
      protected boolean ssl
      Flag if ssl should be used.
      protected java.lang.String user
      The user name.
    • Constructor Summary

      Constructors 
      Constructor Description
      EmailAccount​(java.lang.String host, java.lang.Integer port, java.lang.String user, java.lang.String password, java.lang.String sender, boolean ssl)
      Create a new account.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Get host.
      java.lang.String getPassword()
      Get the password.
      java.lang.Integer getPort()
      Get the port.
      java.lang.String getSender()
      Get the sender.
      java.lang.String getUser()
      Get the user.
      boolean isSsl()
      Is ssl connection?
      void setHost​(java.lang.String host)
      Set the host.
      void setPassword​(java.lang.String password)
      Set the password.
      void setPort​(java.lang.Integer port)
      Set the port.
      void setSender​(java.lang.String sender)
      Set the sender.
      void setSsl​(boolean ssl)
      Set the ssl connection property.
      void setUser​(java.lang.String user)
      Set the user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • host

        protected java.lang.String host
        The smtp host address.
      • port

        protected java.lang.Integer port
        The smpt host port.
      • user

        protected java.lang.String user
        The user name.
      • password

        protected java.lang.String password
        The user password.
      • sender

        protected java.lang.String sender
        The sender email.
      • ssl

        protected boolean ssl
        Flag if ssl should be used.
    • Constructor Detail

      • EmailAccount

        public EmailAccount​(java.lang.String host,
                            java.lang.Integer port,
                            java.lang.String user,
                            java.lang.String password,
                            java.lang.String sender,
                            boolean ssl)
        Create a new account.
        Parameters:
        host - The smtp host.
        port - The smtp port.
        user - The user name.
        password - The password.
        sender - The sender email.
        ssl - Flag for ssl.
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Get host.
        Returns:
        The host.
      • setHost

        public void setHost​(java.lang.String host)
        Set the host.
        Parameters:
        host - The host.
      • getPort

        public java.lang.Integer getPort()
        Get the port.
        Returns:
        The port.
      • setPort

        public void setPort​(java.lang.Integer port)
        Set the port.
        Parameters:
        port - The port.
      • getUser

        public java.lang.String getUser()
        Get the user.
        Returns:
        The user.
      • setUser

        public void setUser​(java.lang.String user)
        Set the user.
        Parameters:
        user - The user.
      • getPassword

        public java.lang.String getPassword()
        Get the password.
        Returns:
        The password.
      • setPassword

        public void setPassword​(java.lang.String password)
        Set the password.
        Parameters:
        password - The password.
      • getSender

        public java.lang.String getSender()
        Get the sender.
        Returns:
        The sender.
      • setSender

        public void setSender​(java.lang.String sender)
        Set the sender.
        Parameters:
        sender - The sender.
      • isSsl

        public boolean isSsl()
        Is ssl connection?
        Returns:
        The
      • setSsl

        public void setSsl​(boolean ssl)
        Set the ssl connection property.
        Parameters:
        ssl - Flag indicating ssl.