Class ConfiguredGreenMail
- java.lang.Object
-
- com.icegreen.greenmail.configuration.ConfiguredGreenMail
-
- All Implemented Interfaces:
GreenMailOperations
- Direct Known Subclasses:
GreenMail,GreenMailProxy
public abstract class ConfiguredGreenMail extends Object implements GreenMailOperations
A version of GreenMailOperations that implements the configure() method.
-
-
Constructor Summary
Constructors Constructor Description ConfiguredGreenMail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoConfigure()This method can be used by child classes to apply the configuration that is stored in config.ConfiguredGreenMailwithConfiguration(GreenMailConfiguration config)Configure GreenMail instance using the given configuration-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.icegreen.greenmail.base.GreenMailOperations
getImap, getImaps, getManagers, getPop3, getPop3s, getReceivedMessages, getReceivedMessagesForDomain, getSmtp, getSmtps, getUserManager, isRunning, loadEmails, purgeEmailFromAllMailboxes, reset, setQuotaSupported, setUser, setUser, setUsers, start, stop, waitForIncomingEmail, waitForIncomingEmail
-
-
-
-
Method Detail
-
withConfiguration
public ConfiguredGreenMail withConfiguration(GreenMailConfiguration config)
Description copied from interface:GreenMailOperationsConfigure GreenMail instance using the given configuration- Specified by:
withConfigurationin interfaceGreenMailOperations- Parameters:
config- Configuration to use- Returns:
- self (for method chaining)
-
doConfigure
protected void doConfigure()
This method can be used by child classes to apply the configuration that is stored in config.
-
-