Class SmtpConnection


  • public class SmtpConnection
    extends Object
    • Method Detail

      • send

        public void send​(String line)
      • dotLimitedInputStream

        public InputStream dotLimitedInputStream​(byte[] initialContent)
        Reads the contents of the stream until <CRLF>.<CRLF> is encountered.
        Parameters:
        initialContent - initial content
        Returns:
        a limited input stream.
      • getClientAddress

        public String getClientAddress()
      • getServerAddress

        public InetAddress getServerAddress()
      • getServerGreetingsName

        public String getServerGreetingsName()
      • getHeloName

        public String getHeloName()
      • setHeloName

        public void setHeloName​(String n)
      • quit

        public void quit()
      • isAuthenticated

        public boolean isAuthenticated()
        Checks if there was a successful authentication for this connection.
        Returns:
        true, if authenticated
      • setAuthenticated

        public void setAuthenticated​(boolean authenticated)
        Sets the authentication state of this connection.
        Parameters:
        authenticated - true,