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 booleanprotected Stringprotected Stringprotected javax.mail.Authenticatorprotected Stringprotected EMailAuthenticationTypeprotected EMailEncryptionprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.AuthenticatorDeprecated.getHost()intgetPort()booleanbooleanvoidsetAllowCustomSenderAddress(boolean allowCustomSenderAddress) voidsetAllowUtf8(boolean allowUtf8) voidsetAuthAtttributes(Map<String, String> authAtttributes) voidsetAuthenticator(javax.mail.Authenticator customAuthenticator) Deprecated.voidsetAuthName(String authName) voidsetAuthPassword(String authPassword) voidvoidsetMailAuthenticationType(EMailAuthenticationType mailAuthenticationType) voidsetMailEncryption(EMailEncryption mailEncryption) voidsetMailServerScope(EMailServerScope mailServerScope) Sets the mail server scope.voidsetPort(int port) voidsetSenderAddress(String senderAddress) voidsetSenderName(String senderName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getMailServerScopein interfaceIMailServerData
-
setMailServerScope
Sets the mail server scope. Defaults toEMailServerScope.CUSTOMwhen 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:
getHostin interfaceIMailServerData
-
getPort
public int getPort()- Specified by:
getPortin interfaceIMailServerData
-
getSenderAddress
- Specified by:
getSenderAddressin interfaceIMailServerData- Returns:
- Configured sender address of the mail server.
-
getSenderName
- Specified by:
getSenderNamein interfaceIMailServerData- Returns:
- Configured sender name of the mail server.
-
getAuthName
- Specified by:
getAuthNamein interfaceIMailServerData
-
getAuthPassword
- Specified by:
getAuthPasswordin interfaceIMailServerData
-
getAuthenticationType
- Specified by:
getAuthenticationTypein interfaceIMailServerData
-
getEncrytpionType
- Specified by:
getEncrytpionTypein interfaceIMailServerData
-
isAllowUtf8
public boolean isAllowUtf8()- Specified by:
isAllowUtf8in interfaceIMailServerData
-
isAllowCustomSenderAddress
public boolean isAllowCustomSenderAddress()- Specified by:
isAllowCustomSenderAddressin interfaceIMailServerData- Returns:
- Whether this mail server allows a custom sender address. If not, the
IMailServerData.getSenderAddress()must be used.
-
getAuthAttributes
- Specified by:
getAuthAttributesin interfaceIMailServerData
-
getAuthenticator
Deprecated.- Specified by:
getAuthenticatorin interfaceIMailServerData
-
setAuthenticator
Deprecated.
-