Uses of Class
com.icegreen.greenmail.util.ServerSetup
-
Packages that use ServerSetup Package Description com.icegreen.greenmail.imap com.icegreen.greenmail.junit com.icegreen.greenmail.pop3 com.icegreen.greenmail.server com.icegreen.greenmail.smtp com.icegreen.greenmail.util -
-
Uses of ServerSetup in com.icegreen.greenmail.imap
Constructors in com.icegreen.greenmail.imap with parameters of type ServerSetup Constructor Description ImapServer(ServerSetup setup, Managers managers) -
Uses of ServerSetup in com.icegreen.greenmail.junit
Constructors in com.icegreen.greenmail.junit with parameters of type ServerSetup Constructor Description GreenMailRule(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 Constructor Description Pop3Server(ServerSetup setup, Managers managers) -
Uses of ServerSetup in com.icegreen.greenmail.server
Fields in com.icegreen.greenmail.server declared as ServerSetup Modifier and Type Field Description protected ServerSetupAbstractServer. setupMethods in com.icegreen.greenmail.server that return ServerSetup Modifier and Type Method Description ServerSetupAbstractServer. getServerSetup()Constructors in com.icegreen.greenmail.server with parameters of type ServerSetup Constructor Description AbstractServer(ServerSetup setup, Managers managers) -
Uses of ServerSetup in com.icegreen.greenmail.smtp
Constructors in com.icegreen.greenmail.smtp with parameters of type ServerSetup Constructor Description SmtpServer(ServerSetup setup, Managers managers) -
Uses of ServerSetup in com.icegreen.greenmail.util
Fields in com.icegreen.greenmail.util declared as ServerSetup Modifier and Type Field Description static ServerSetup[]ServerSetup. ALLstatic ServerSetup[]ServerSetupTest. ALLprotected ServerSetup[]GreenMail. configstatic ServerSetupServerSetup. IMAPstatic ServerSetupServerSetupTest. IMAPstatic ServerSetupServerSetup. IMAPSstatic ServerSetupServerSetupTest. IMAPSstatic ServerSetupServerSetup. POP3static ServerSetupServerSetupTest. POP3static ServerSetupServerSetup. POP3Sstatic ServerSetupServerSetupTest. POP3Sstatic ServerSetupServerSetup. SMTPstatic ServerSetupServerSetupTest. SMTPstatic ServerSetup[]ServerSetup. SMTP_IMAPstatic ServerSetup[]ServerSetupTest. SMTP_IMAPstatic ServerSetup[]ServerSetup. SMTP_POP3static ServerSetup[]ServerSetupTest. SMTP_POP3static ServerSetup[]ServerSetup. SMTP_POP3_IMAPstatic ServerSetup[]ServerSetupTest. SMTP_POP3_IMAPstatic ServerSetupServerSetup. SMTPSstatic ServerSetupServerSetupTest. SMTPSstatic ServerSetup[]ServerSetup. SMTPS_IMAPSstatic ServerSetup[]ServerSetupTest. SMTPS_IMAPSstatic ServerSetup[]ServerSetup. SMTPS_POP3Sstatic ServerSetup[]ServerSetupTest. SMTPS_POP3Sstatic ServerSetup[]ServerSetup. SMTPS_POP3S_IMAPSstatic ServerSetup[]ServerSetupTest. SMTPS_POP3S_IMAPSMethods in com.icegreen.greenmail.util that return ServerSetup Modifier and Type Method Description ServerSetup[]PropertiesBasedServerSetupBuilder. build(Properties properties)Creates a server setup based on provided properties.ServerSetupServerSetup. createCopy()Create a deep copy.ServerSetupServerSetup. 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.ServerSetupServerSetup. createCopy(String bindAddress)Create a deep copy.ServerSetupServerSetup. 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.ServerSetupServerSetup. mailSessionProperty(String key, String value)Create a new server setup copy, configured with given JavaMail session property.ServerSetupServerSetup. port(int port)Creates a deep copy and updates port.ServerSetupServerSetup. setVerbose(boolean verbose)ServerSetupServerSetup. verbose(boolean verbose)Creates a deep copy with verbose configured.static ServerSetup[]ServerSetup. verbose(ServerSetup[] serverSetups)Creates a copy with verbose mode enabled.ServerSetupServerSetup. withPort(int port)Deprecated.useport(int)- will be deprecated in 2.1Methods in com.icegreen.greenmail.util with parameters of type ServerSetup Modifier and Type Method Description static 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 ServerSetup Modifier and Type Method Description protected 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 ServerSetup Constructor Description GreenMail(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
-