Interface ConnectionVerifier
-
- All Known Implementing Classes:
DefaultIncomingConnectionVerifier
public interface ConnectionVerifier
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ConnectionVerifier.AuthenticationType
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static javax.mail.Session
cloneSessionWithMaxTimeout(javax.mail.Session session, long maxTimeout)
static javax.mail.Session
cloneSessionWithMaxTimeout(javax.mail.Session session, long maxTimeout, ConnectionVerifier.AuthenticationType type)
Clone mail Sessions and enforce a max timeoutdefault ConnectionVerifier.AuthenticationType
getAuthenticationType(InboundMailServer mailServer)
static void
optionallyOverrideTimeout(Properties properties, String propertyName, long maxTimeout)
void
verifyConnection(com.atlassian.mail.server.MailServer mailServer)
Verifies connection to a mail server.
-
-
-
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)
-
getAuthenticationType
default ConnectionVerifier.AuthenticationType getAuthenticationType(InboundMailServer mailServer)
-
-