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