public interface MailerFromSessionBuilder<T extends MailerFromSessionBuilder<?>> extends MailerGenericBuilder<T>
Session
instance. Allows configuring all generic Mailer settings, but not SMTP and transport strategy
details.
Note: To start creating a new Mailer, you use MailerBuilder
directly instead.
Note: Any SMTP server properties that can be set on the Session
object by are presumed to be already present in the past
Session
instance.
TransportStrategy
DEFAULT_CONNECTIONPOOL_CLAIMTIMEOUT_MILLIS, DEFAULT_CONNECTIONPOOL_CORE_SIZE, DEFAULT_CONNECTIONPOOL_EXPIREAFTER_MILLIS, DEFAULT_CONNECTIONPOOL_LOADBALANCING_STRATEGY, DEFAULT_CONNECTIONPOOL_MAX_SIZE, DEFAULT_JAVAXMAIL_DEBUG, DEFAULT_POOL_KEEP_ALIVE_TIME, DEFAULT_POOL_SIZE, DEFAULT_PROXY_BRIDGE_PORT, DEFAULT_PROXY_PORT, DEFAULT_SESSION_TIMEOUT_MILLIS, DEFAULT_TRANSPORT_MODE_LOGGING_ONLY, DEFAULT_TRUST_ALL_HOSTS, DEFAULT_VERIFY_SERVER_IDENTITY
Modifier and Type | Method and Description |
---|---|
Mailer |
buildMailer()
Builds the actual
Mailer instance with everything configured on this builder instance. |
jakarta.mail.Session |
getSession() |
T |
usingSession(@NotNull jakarta.mail.Session session)
Only use this API if you must use your own
Session instance. |
async, clearEmailValidator, clearProperties, clearProxy, clearSignByDefaultWithSmime, clearTrustedSSLHosts, getClusterKey, getConnectionPoolClaimTimeoutMillis, getConnectionPoolCoreSize, getConnectionPoolExpireAfterMillis, getConnectionPoolLoadBalancingStrategy, getConnectionPoolMaxSize, getCustomMailer, getEmailValidator, getExecutorService, getPkcs12ConfigForSmimeSigning, getProperties, getProxyBridgePort, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getSessionTimeout, getSslHostsToTrust, getThreadPoolKeepAliveTime, getThreadPoolSize, isAsync, isDebugLogging, isTransportModeLoggingOnly, isTrustAllSSLHost, isVerifyingServerIdentity, resetClusterKey, resetConnectionPoolClaimTimeoutMillis, resetConnectionPoolCoreSize, resetConnectionPoolExpireAfterMillis, resetConnectionPoolLoadBalancingStrategy, resetConnectionPoolMaxSize, resetEmailValidator, resetExecutorService, resetSessionTimeout, resetThreadPoolKeepAliveTime, resetThreadPoolSize, resetTransportModeLoggingOnly, resetTrustingAllHosts, resetVerifyingServerIdentity, signByDefaultWithSmime, signByDefaultWithSmime, signByDefaultWithSmime, signByDefaultWithSmime, trustingAllHosts, trustingSSLHosts, verifyingServerIdentity, withClusterKey, withConnectionPoolClaimTimeoutMillis, withConnectionPoolCoreSize, withConnectionPoolExpireAfterMillis, withConnectionPoolLoadBalancingStrategy, withConnectionPoolMaxSize, withCustomMailer, withDebugLogging, withEmailValidator, withExecutorService, withProperties, withProperties, withProperty, withProxy, withProxy, withProxyBridgePort, withProxyHost, withProxyPassword, withProxyPort, withProxyUsername, withSessionTimeout, withThreadPoolKeepAliveTime, withThreadPoolSize, withTransportModeLoggingOnly
T usingSession(@NotNull @NotNull jakarta.mail.Session session)
Session
instance. Assumes that all properties (except session timeout) used to make
a connection are configured (host, port, authentication and transport protocol settings and custom ssl factory if used).
Only proxy can be configured optionally and general connection settings.
session
- A mostly preconfigured mail Session
object with which a Message
can be produced.Mailer buildMailer()
Mailer
instance with everything configured on this builder instance.
For all configurable values: if omitted, a default value will be attempted by looking at property files or manually defined defauls.
buildMailer
in interface MailerGenericBuilder<T extends MailerFromSessionBuilder<?>>
jakarta.mail.Session getSession()
usingSession(Session)
Copyright © 2009–2022. All rights reserved.