Class IncaMailProvider
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
ch.tocco.nice2.optional.incamail.impl.IncaMailProvider
- All Implemented Interfaces:
MailProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.MailProvider
MailProvider.SenderMode
-
Field Summary
Fields inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
emailEncodeAttachmentFileNames, logger, mailArchive, mailSendThrottle, messageProcessorMultiplexer, persistenceService, templateEngineFactory
-
Constructor Summary
ConstructorDescriptionIncaMailProvider
(org.slf4j.Logger logger, PersistenceService persistenceService, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
instantiateMail
(String subject) void
setDevMode
(boolean devMode) void
setWsdlLocation
(String wsdlLocation) Methods inherited from class ch.tocco.nice2.messaging.mail.spi.AbstractMailProvider
setEmailEncodeAttachmentFileNames, setMessageProcessors
-
Constructor Details
-
IncaMailProvider
public IncaMailProvider(org.slf4j.Logger logger, PersistenceService persistenceService, TemplateEngineFactory templateEngineFactory, MailArchive mailArchive, SecurityManager securityManager)
-
-
Method Details
-
setWsdlLocation
-
setDevMode
@Value("${incamail.dev.mode}") public void setDevMode(boolean devMode) -
getId
- Returns:
- a unique identifier
-
getSenderMode
- Returns:
- the "mode" for sender selection
-
getAllowedSenderAddresses
- Returns:
- a list of allowed sender addresses, will only be used with RESTRICTED SenderMode
-
instantiateMail
- Returns:
- creates a new
Mail
instance that supports the current mail provider
-