Class ProtocolConnection


  • public final class ProtocolConnection
    extends Object
    Represents the email Protocol connection settings for pop/imap/smtp protocols.
    • Constructor Detail

      • ProtocolConnection

        protected ProtocolConnection​(String encryptionMethod,
                                     String hostname,
                                     int port)
        Initializes a new instance of the ProtocolConnection class.
        Parameters:
        encryptionMethod - The encryption method.
        hostname - The hostname.
        port - The port number to use for the portocol.
    • Method Detail

      • setEncryptionMethod

        public void setEncryptionMethod​(String value)
        Sets the encryption method.
        Parameters:
        value - the new encryption method
      • getHostname

        public String getHostname()
        Gets the hostname.
        Returns:
        The hostname.
      • setHostname

        public void setHostname​(String value)
        Sets the hostname.
        Parameters:
        value - the new hostname
      • getPort

        public int getPort()
        Gets the port number.
        Returns:
        The port number.
      • setPort

        public void setPort​(int value)
        Sets the port.
        Parameters:
        value - the new port