Interface SmtpEmailProfile.ConnectionSettings
-
- Enclosing interface:
- SmtpEmailProfile
public static interface SmtpEmailProfile.ConnectionSettingsThe connection settings used for establishing a connection to an SMTP server
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHostname()intgetPort()longgetTimeout()java.util.Collection<java.lang.String>getTlsProtocols()booleanisDebugEnabled()booleanisStartTlsEnabled()booleanisTlsEnabled()
-
-
-
Method Detail
-
getHostname
java.lang.String getHostname()
- Returns:
- the hostname of the SMTP server
-
getPort
int getPort()
- Returns:
- the port that the SMTP server is listening to
-
isTlsEnabled
boolean isTlsEnabled()
- Returns:
- true if SSL / TLS is enabled, false if SSL / TLS is disabled
-
isStartTlsEnabled
boolean isStartTlsEnabled()
- Returns:
- true if Start TLS is enabled, false if Start TLS is disabled
-
getTlsProtocols
java.util.Collection<java.lang.String> getTlsProtocols()
- Returns:
- the TLS protocols enabled
-
getTimeout
long getTimeout()
- Returns:
- the timeout value in milliseconds, used for both SMTP socket connect AND read timeout
-
isDebugEnabled
boolean isDebugEnabled()
- Returns:
- true if debug is enabled, false if debug is disabled
-
-