Interface SmtpEmailProfile.ConnectionSettings
-
- Enclosing interface:
- SmtpEmailProfile
public static interface SmtpEmailProfile.ConnectionSettings
The 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.String
getHostname()
int
getPort()
long
getTimeout()
java.util.Collection<java.lang.String>
getTlsProtocols()
boolean
isDebugEnabled()
boolean
isStartTlsEnabled()
boolean
isTlsEnabled()
-
-
-
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
-
-