Package org.citrusframework.mail.client
Class MailClientBuilder
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointBuilder<MailClient>
org.citrusframework.mail.client.MailClientBuilder
- All Implemented Interfaces:
EndpointBuilder<MailClient>
- 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 TypeMethodDescriptionprotected MailClientSets the host property.javaMailProperties(Properties javaMailProperties) Sets the Java mail properties.marshaller(MailMarshaller marshaller) Sets the mail message marshaller.messageConverter(MailMessageConverter messageConverter) Sets the message converter.Sets the password property.port(int port) Sets the port.Sets the protocol property.timeout(long timeout) Sets the default timeout.Sets the username property.Methods 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
-
MailClientBuilder
public MailClientBuilder()
-
-
Method Details
-
getEndpoint
- Specified by:
getEndpointin classAbstractEndpointBuilder<MailClient>
-
host
Sets the host property.- Parameters:
host-- Returns:
-
port
Sets the port.- Parameters:
port-- Returns:
-
protocol
Sets the protocol property.- Parameters:
protocol-- Returns:
-
username
Sets the username property.- Parameters:
username-- Returns:
-
password
Sets the password property.- Parameters:
password-- Returns:
-
javaMailProperties
Sets the Java mail properties.- Parameters:
javaMailProperties-- Returns:
-
marshaller
Sets the mail message marshaller.- Parameters:
marshaller-- Returns:
-
messageConverter
Sets the message converter.- Parameters:
messageConverter-- Returns:
-
timeout
Sets the default timeout.- Parameters:
timeout-- Returns:
-