Package org.citrusframework.mail.server
Class MailServerBuilder
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointBuilder<T>
org.citrusframework.server.AbstractServerBuilder<MailServer,MailServerBuilder>
org.citrusframework.mail.server.MailServerBuilder
- All Implemented Interfaces:
EndpointBuilder<MailServer>
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
Field Summary
Fields inherited from interface org.citrusframework.endpoint.EndpointBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthRequired(boolean authRequired) Enables/disables user authentication.autoAccept(boolean autoAccept) Enables/disables auto accept.protected MailServerjavaMailProperties(Properties javaMailProperties) Sets the Java mail properties.knownUsers(String... users) Sets the known users.knownUsers(List<String> users) Sets the known users.marshaller(MailMarshaller marshaller) Sets the mail marshaller.messageConverter(MailMessageConverter messageConverter) Sets the message converter.port(int port) Sets the port property.smtp(com.icegreen.greenmail.util.GreenMail smtpServer) Sets the smtpServer property.splitMultipart(boolean splitMultipart) Enables/disables split multipart.Methods inherited from class org.citrusframework.server.AbstractServerBuilder
autoStart, debugLogging, endpointAdapter, timeoutMethods inherited from class org.citrusframework.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.endpoint.EndpointBuilder
build, build
-
Constructor Details
-
MailServerBuilder
public MailServerBuilder()
-
-
Method Details
-
getEndpoint
- Specified by:
getEndpointin classAbstractEndpointBuilder<MailServer>
-
port
Sets the port property.- Parameters:
port-- Returns:
-
marshaller
Sets the mail marshaller.- Parameters:
marshaller-- Returns:
-
javaMailProperties
Sets the Java mail properties.- Parameters:
javaMailProperties-- Returns:
-
authRequired
Enables/disables user authentication.- Parameters:
authRequired-- Returns:
-
autoAccept
Enables/disables auto accept.- Parameters:
autoAccept-- Returns:
-
splitMultipart
Enables/disables split multipart.- Parameters:
splitMultipart-- Returns:
-
smtp
Sets the smtpServer property.- Parameters:
smtpServer-- Returns:
-
messageConverter
Sets the message converter.- Parameters:
messageConverter-- Returns:
-
knownUsers
Sets the known users.- Parameters:
users-- Returns:
-
knownUsers
Sets the known users.- Parameters:
users-- Returns:
-