Interface ConnectionVerifier

    • Method Detail

      • verifyConnection

        void verifyConnection​(com.atlassian.mail.server.MailServer mailServer)
                       throws Exception
        Verifies connection to a mail server.
        Parameters:
        mailServer - mail server to verify connection to
        Throws:
        Exception - if connection validation fails
      • cloneSessionWithMaxTimeout

        static javax.mail.Session cloneSessionWithMaxTimeout​(javax.mail.Session session,
                                                             long maxTimeout,
                                                             ConnectionVerifier.AuthenticationType type)
        Clone mail Sessions and enforce a max timeout
      • cloneSessionWithMaxTimeout

        static javax.mail.Session cloneSessionWithMaxTimeout​(javax.mail.Session session,
                                                             long maxTimeout)
      • optionallyOverrideTimeout

        static void optionallyOverrideTimeout​(Properties properties,
                                              String propertyName,
                                              long maxTimeout)