Package de.xima.fc.mail.models
Class CustomMailServerData
- java.lang.Object
-
- de.xima.fc.mail.models.CustomMailServerData
-
- All Implemented Interfaces:
IMailServerData
,Serializable
public class CustomMailServerData extends Object implements IMailServerData
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowUtf8
protected Map<String,String>
authAtttributes
protected String
authName
protected String
authPassword
protected javax.mail.Authenticator
customAuthenticator
protected String
host
protected EMailAuthenticationType
mailAuthenticationType
protected EMailEncryption
mailEncryption
protected int
port
-
Constructor Summary
Constructors Constructor Description CustomMailServerData()
-
Method Summary
-
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 Detail
-
host
protected String host
-
port
protected int port
-
authName
protected String authName
-
authPassword
protected String authPassword
-
mailAuthenticationType
protected EMailAuthenticationType mailAuthenticationType
-
mailEncryption
protected EMailEncryption mailEncryption
-
allowUtf8
protected boolean allowUtf8
-
customAuthenticator
protected transient javax.mail.Authenticator customAuthenticator
-
-
Method Detail
-
getMailServerScope
public EMailServerScope getMailServerScope()
- Specified by:
getMailServerScope
in interfaceIMailServerData
-
setMailServerScope
public void setMailServerScope(EMailServerScope mailServerScope)
Sets the mail server scope. Defaults toEMailServerScope.CUSTOM
when not set explicitly.- Parameters:
mailServerScope
- The new mail server scope.
-
getMailAuthenticationType
public EMailAuthenticationType getMailAuthenticationType()
-
setMailAuthenticationType
public void setMailAuthenticationType(EMailAuthenticationType mailAuthenticationType)
-
getMailEncryption
public EMailEncryption getMailEncryption()
-
setMailEncryption
public void setMailEncryption(EMailEncryption mailEncryption)
-
setHost
public void setHost(String host)
-
setPort
public void setPort(int port)
-
setSenderAddress
public void setSenderAddress(String senderAddress)
- Parameters:
senderAddress
- Sender address of the mail server.
-
setSenderName
public void setSenderName(String senderName)
- Parameters:
senderName
- Sender name of the mail server.
-
setAuthName
public void setAuthName(String authName)
-
setAuthPassword
public void setAuthPassword(String authPassword)
-
setAllowUtf8
public void setAllowUtf8(boolean allowUtf8)
-
setAllowCustomSenderAddress
public void setAllowCustomSenderAddress(boolean allowCustomSenderAddress)
-
getHost
public String getHost()
- Specified by:
getHost
in interfaceIMailServerData
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceIMailServerData
-
getSenderAddress
public String getSenderAddress()
- Specified by:
getSenderAddress
in interfaceIMailServerData
- Returns:
- Configured sender address of the mail server.
-
getSenderName
public String getSenderName()
- Specified by:
getSenderName
in interfaceIMailServerData
- Returns:
- Configured sender name of the mail server.
-
getAuthName
public String getAuthName()
- Specified by:
getAuthName
in interfaceIMailServerData
-
getAuthPassword
public String getAuthPassword()
- Specified by:
getAuthPassword
in interfaceIMailServerData
-
getAuthenticationType
public EMailAuthenticationType getAuthenticationType()
- Specified by:
getAuthenticationType
in interfaceIMailServerData
-
getEncrytpionType
public EMailEncryption 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
public Map<String,String> getAuthAttributes()
- Specified by:
getAuthAttributes
in interfaceIMailServerData
-
getAuthenticator
@Deprecated public javax.mail.Authenticator getAuthenticator()
Deprecated.- Specified by:
getAuthenticator
in interfaceIMailServerData
-
setAuthenticator
@Deprecated public void setAuthenticator(javax.mail.Authenticator customAuthenticator)
Deprecated.
-
-