Uses of Class
com.icegreen.greenmail.util.ServerSetup
Packages that use ServerSetup
Package
Description
-
Uses of ServerSetup in com.icegreen.greenmail.imap
Constructors in com.icegreen.greenmail.imap with parameters of type ServerSetup -
Uses of ServerSetup in com.icegreen.greenmail.junit
Constructors in com.icegreen.greenmail.junit with parameters of type ServerSetupModifierConstructorDescriptionGreenMailRule(ServerSetup serverSetup) Deprecated.Initialize with single server setupsGreenMailRule(ServerSetup[] serverSetups) Deprecated.Initialize with multiple server setups -
Uses of ServerSetup in com.icegreen.greenmail.pop3
Constructors in com.icegreen.greenmail.pop3 with parameters of type ServerSetup -
Uses of ServerSetup in com.icegreen.greenmail.server
Fields in com.icegreen.greenmail.server declared as ServerSetupMethods in com.icegreen.greenmail.server that return ServerSetupConstructors in com.icegreen.greenmail.server with parameters of type ServerSetup -
Uses of ServerSetup in com.icegreen.greenmail.smtp
Constructors in com.icegreen.greenmail.smtp with parameters of type ServerSetup -
Uses of ServerSetup in com.icegreen.greenmail.util
Fields in com.icegreen.greenmail.util declared as ServerSetupModifier and TypeFieldDescriptionstatic final ServerSetup[]ServerSetup.ALLstatic final ServerSetup[]ServerSetupTest.ALLprotected ServerSetup[]GreenMail.configstatic final ServerSetupServerSetup.IMAPstatic final ServerSetupServerSetupTest.IMAPstatic final ServerSetupServerSetup.IMAPSstatic final ServerSetupServerSetupTest.IMAPSstatic final ServerSetupServerSetup.POP3static final ServerSetupServerSetupTest.POP3static final ServerSetupServerSetup.POP3Sstatic final ServerSetupServerSetupTest.POP3Sstatic final ServerSetupServerSetup.SMTPstatic final ServerSetupServerSetupTest.SMTPstatic final ServerSetup[]ServerSetup.SMTP_IMAPstatic final ServerSetup[]ServerSetupTest.SMTP_IMAPstatic final ServerSetup[]ServerSetup.SMTP_POP3static final ServerSetup[]ServerSetupTest.SMTP_POP3static final ServerSetup[]ServerSetup.SMTP_POP3_IMAPstatic final ServerSetup[]ServerSetupTest.SMTP_POP3_IMAPstatic final ServerSetupServerSetup.SMTPSstatic final ServerSetupServerSetupTest.SMTPSstatic final ServerSetup[]ServerSetup.SMTPS_IMAPSstatic final ServerSetup[]ServerSetupTest.SMTPS_IMAPSstatic final ServerSetup[]ServerSetup.SMTPS_POP3Sstatic final ServerSetup[]ServerSetupTest.SMTPS_POP3Sstatic final ServerSetup[]ServerSetup.SMTPS_POP3S_IMAPSstatic final ServerSetup[]ServerSetupTest.SMTPS_POP3S_IMAPSMethods in com.icegreen.greenmail.util that return ServerSetupModifier and TypeMethodDescriptionPropertiesBasedServerSetupBuilder.build(Properties properties) Creates a server setup based on provided properties.ServerSetup.createCopy()Create a deep copy.ServerSetup.createCopy(int port, String bindAddress, String protocol) Create a deep copy.static ServerSetup[]ServerSetup.createCopy(ServerSetup[] serverSetups, UnaryOperator<ServerSetup> copyMutator) Creates a copy applying given mutator on each copy.ServerSetup.createCopy(String bindAddress) Create a deep copy.ServerSetup.dynamicPort()Enable dynamic port allocation.static ServerSetup[]ServerSetup.dynamicPort(ServerSetup[] serverSetups) Creates a copy with dynamic ports (auto-detecting available ports) enabled.static ServerSetup[]ServerSetup.mailSessionProperty(ServerSetup[] serverSetups, String key, String value) Creates a copy with configured default mail session property.ServerSetup.mailSessionProperty(String key, String value) Create a new server setup copy, configured with given JavaMail session property.ServerSetup.port(int port) Creates a deep copy and updates port.ServerSetup.setVerbose(boolean verbose) ServerSetup.verbose(boolean verbose) Creates a deep copy with verbose configured.static ServerSetup[]ServerSetup.verbose(ServerSetup[] serverSetups) Creates a copy with verbose mode enabled.ServerSetup.withPort(int port) Deprecated.Methods in com.icegreen.greenmail.util with parameters of type ServerSetupModifier and TypeMethodDescriptionstatic ServerSetup[]ServerSetup.createCopy(ServerSetup[] serverSetups, UnaryOperator<ServerSetup> copyMutator) Creates a copy applying given mutator on each copy.protected Map<String,AbstractServer> GreenMail.createServices(ServerSetup[] config, Managers mgr) Create the required services according to the server setupstatic jakarta.mail.internet.MimeMessageGreenMailUtil.createTextEmail(String to, String from, String subject, String msg, ServerSetup setup) static ServerSetup[]ServerSetup.dynamicPort(ServerSetup[] serverSetups) Creates a copy with dynamic ports (auto-detecting available ports) enabled.static jakarta.mail.SessionGreenMailUtil.getSession(ServerSetup setup) Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.static jakarta.mail.SessionGreenMailUtil.getSession(ServerSetup setup, Properties mailProps) Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.static jakarta.mail.SessionGreenMailUtil.getSession(ServerSetup setup, Properties mailProps, boolean debug) Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.static ServerSetup[]ServerSetup.mailSessionProperty(ServerSetup[] serverSetups, String key, String value) Creates a copy with configured default mail session property.static voidGreenMailUtil.sendAttachmentEmail(String to, String from, String subject, String msg, byte[] attachment, String contentType, String filename, String description, ServerSetup setup) static voidGreenMailUtil.sendMessageBody(String to, String from, String subject, Object body, String contentType, ServerSetup serverSetup) Send the message with the given attributes and the given body using the specified SMTP settingsstatic voidGreenMailUtil.sendTextEmail(String to, String from, String subject, String msg, ServerSetup setup) Sends a text message using given server setup for SMTP.static ServerSetup[]ServerSetup.verbose(ServerSetup[] serverSetups) Creates a copy with verbose mode enabled.Method parameters in com.icegreen.greenmail.util with type arguments of type ServerSetupModifier and TypeMethodDescriptionprotected voidPropertiesBasedServerSetupBuilder.addDefaultSetups(String hostname, Properties properties, List<ServerSetup> serverSetups) protected voidPropertiesBasedServerSetupBuilder.addSetup(String hostname, String protocol, Properties properties, List<ServerSetup> serverSetups) protected voidPropertiesBasedServerSetupBuilder.addTestSetups(String hostname, Properties properties, List<ServerSetup> serverSetups) static ServerSetup[]ServerSetup.createCopy(ServerSetup[] serverSetups, UnaryOperator<ServerSetup> copyMutator) Creates a copy applying given mutator on each copy.Constructors in com.icegreen.greenmail.util with parameters of type ServerSetupModifierConstructorDescriptionGreenMail(ServerSetup config) Call this constructor if you want to run one of the email servers onlyGreenMail(ServerSetup[] config) Call this constructor if you want to run more than one of the email servers
port(int)- will be deprecated in 2.1