public enum EmailProtocol extends Enum<EmailProtocol>
EmailConnector.
Each protocol have a set of properties that need to be configured to establish a connection with a mail server.
The full list of properties available for protocols can be found at:
| Enum Constant and Description |
|---|
IMAP
represents the Internet Message Access Protocol.
|
IMAPS
represents the secured Internet Message Access Protocol.
|
POP3
represents the Post Office Protocol.
|
POP3S
represents the secured Post Office Protocol.
|
SMTP
represents the Simple Mail Transfer Protocol.
|
SMTPS
represents the secured Simple Mail Transfer Protocol.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConnectionTimeoutProperty()
Socket connection timeout value in milliseconds.
|
String |
getHostProperty()
The host name of the mail server.
|
String |
getMailAuthProperty()
Indicates if should attempt to authorize or not.
|
String |
getMailMimeCharsetProperty()
Defines the default mime charset to use when none has been specified for the message.
|
String |
getName()
The name of the protocol.
|
String |
getPortProperty()
The port number of the mail server.
|
String |
getReadTimeoutProperty()
Socket read timeout value in milliseconds.
|
String |
getSocketFactoryFallbackProperty()
Whether to use
Socket as a fallback if the initial connection fails or not. |
String |
getSocketFactoryPortProperty()
Specifies the port to connect to when using a socket factory.
|
String |
getSocketFactoryProperty() |
String |
getSslCiphersuitesProperty()
Specifies the SSL ciphersuites that will be enabled for SSL connections.
|
String |
getSslEnableProperty()
Specifies if ssl is enabled or not.
|
String |
getSslProtocolsProperty()
Specifies the SSL protocols that will be enabled for SSL connections.
|
String |
getSslTrustProperty()
Specifies the trusted hosts.
|
String |
getStartTlsProperty()
Indicates if the STARTTLS command shall be used to initiate a TLS-secured connection.
|
String |
getTransportProtocolProperty()
Specifies the default transport name.
|
String |
getWriteTimeoutProperty()
Socket write timeout value in milliseconds.
|
boolean |
isSecure()
If the protocol is secure or not.
|
static EmailProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmailProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmailProtocol SMTP
public static final EmailProtocol SMTPS
public static final EmailProtocol IMAP
public static final EmailProtocol IMAPS
public static final EmailProtocol POP3
public static final EmailProtocol POP3S
public static EmailProtocol[] values()
for (EmailProtocol c : EmailProtocol.values()) System.out.println(c);
public static EmailProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public boolean isSecure()
public String getHostProperty()
public String getPortProperty()
public String getMailAuthProperty()
public String getMailMimeCharsetProperty()
public String getSocketFactoryFallbackProperty()
Socket as a fallback if the initial connection fails or not.public String getSocketFactoryPortProperty()
public String getSocketFactoryProperty()
public String getSslCiphersuitesProperty()
public String getSslProtocolsProperty()
public String getSslEnableProperty()
public String getSslTrustProperty()
public String getStartTlsProperty()
public String getTransportProtocolProperty()
public String getReadTimeoutProperty()
public String getConnectionTimeoutProperty()
public String getWriteTimeoutProperty()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.