Package de.xima.fc.mail.models
Class CustomMailServerData
java.lang.Object
de.xima.fc.mail.models.CustomMailServerData
- All Implemented Interfaces:
IMailServerData
,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected javax.mail.Authenticator
protected String
protected EMailAuthenticationType
protected EMailEncryption
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.Authenticator
Deprecated.getHost()
int
getPort()
boolean
boolean
void
setAllowCustomSenderAddress
(boolean allowCustomSenderAddress) void
setAllowUtf8
(boolean allowUtf8) void
setAuthAtttributes
(Map<String, String> authAtttributes) void
setAuthenticator
(javax.mail.Authenticator customAuthenticator) Deprecated.void
setAuthName
(String authName) void
setAuthPassword
(String authPassword) void
void
setMailAuthenticationType
(EMailAuthenticationType mailAuthenticationType) void
setMailEncryption
(EMailEncryption mailEncryption) void
setMailServerScope
(EMailServerScope mailServerScope) Sets the mail server scope.void
setPort
(int port) void
setSenderAddress
(String senderAddress) void
setSenderName
(String senderName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.mail.IMailServerData
isSupportsCustomSenderName, isSupportsMixedBodyTypes
-
Field Details
-
host
-
port
protected int port -
authName
-
authPassword
-
mailAuthenticationType
-
mailEncryption
-
allowUtf8
protected boolean allowUtf8 -
authAtttributes
-
customAuthenticator
protected transient javax.mail.Authenticator customAuthenticator
-
-
Constructor Details
-
CustomMailServerData
public CustomMailServerData()
-
-
Method Details
-
getMailServerScope
- Specified by:
getMailServerScope
in interfaceIMailServerData
-
setMailServerScope
Sets the mail server scope. Defaults toEMailServerScope.CUSTOM
when not set explicitly.- Parameters:
mailServerScope
- The new mail server scope.
-
getMailAuthenticationType
-
setMailAuthenticationType
-
getMailEncryption
-
setMailEncryption
-
getAuthAtttributes
-
setAuthAtttributes
-
setHost
-
setPort
public void setPort(int port) -
setSenderAddress
- Parameters:
senderAddress
- Sender address of the mail server.
-
setSenderName
- Parameters:
senderName
- Sender name of the mail server.
-
setAuthName
-
setAuthPassword
-
setAllowUtf8
public void setAllowUtf8(boolean allowUtf8) -
setAllowCustomSenderAddress
public void setAllowCustomSenderAddress(boolean allowCustomSenderAddress) -
getHost
- Specified by:
getHost
in interfaceIMailServerData
-
getPort
public int getPort()- Specified by:
getPort
in interfaceIMailServerData
-
getSenderAddress
- Specified by:
getSenderAddress
in interfaceIMailServerData
- Returns:
- Configured sender address of the mail server.
-
getSenderName
- Specified by:
getSenderName
in interfaceIMailServerData
- Returns:
- Configured sender name of the mail server.
-
getAuthName
- Specified by:
getAuthName
in interfaceIMailServerData
-
getAuthPassword
- Specified by:
getAuthPassword
in interfaceIMailServerData
-
getAuthenticationType
- Specified by:
getAuthenticationType
in interfaceIMailServerData
-
getEncrytpionType
- Specified by:
getEncrytpionType
in interfaceIMailServerData
-
isAllowUtf8
public boolean isAllowUtf8()- Specified by:
isAllowUtf8
in interfaceIMailServerData
-
isAllowCustomSenderAddress
public boolean isAllowCustomSenderAddress()- Specified by:
isAllowCustomSenderAddress
in interfaceIMailServerData
- Returns:
- Whether this mail server allows a custom sender address. If not, the
IMailServerData.getSenderAddress()
must be used.
-
getAuthAttributes
- Specified by:
getAuthAttributes
in interfaceIMailServerData
-
getAuthenticator
Deprecated.- Specified by:
getAuthenticator
in interfaceIMailServerData
-
setAuthenticator
Deprecated.
-