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 booleanallowUtf8protected Map<String,String>authAtttributesprotected StringauthNameprotected StringauthPasswordprotected javax.mail.AuthenticatorcustomAuthenticatorprotected Stringhostprotected EMailAuthenticationTypemailAuthenticationTypeprotected EMailEncryptionmailEncryptionprotected intport 
- 
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:
 getMailServerScopein interfaceIMailServerData
 
- 
setMailServerScope
public void setMailServerScope(EMailServerScope mailServerScope)
Sets the mail server scope. Defaults toEMailServerScope.CUSTOMwhen 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:
 getHostin interfaceIMailServerData
 
- 
getPort
public int getPort()
- Specified by:
 getPortin interfaceIMailServerData
 
- 
getSenderAddress
public String getSenderAddress()
- Specified by:
 getSenderAddressin interfaceIMailServerData- Returns:
 - Configured sender address of the mail server.
 
 
- 
getSenderName
public String getSenderName()
- Specified by:
 getSenderNamein interfaceIMailServerData- Returns:
 - Configured sender name of the mail server.
 
 
- 
getAuthName
public String getAuthName()
- Specified by:
 getAuthNamein interfaceIMailServerData
 
- 
getAuthPassword
public String getAuthPassword()
- Specified by:
 getAuthPasswordin interfaceIMailServerData
 
- 
getAuthenticationType
public EMailAuthenticationType getAuthenticationType()
- Specified by:
 getAuthenticationTypein interfaceIMailServerData
 
- 
getEncrytpionType
public EMailEncryption 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
public Map<String,String> getAuthAttributes()
- Specified by:
 getAuthAttributesin interfaceIMailServerData
 
- 
getAuthenticator
@Deprecated public javax.mail.Authenticator getAuthenticator()
Deprecated.- Specified by:
 getAuthenticatorin interfaceIMailServerData
 
- 
setAuthenticator
@Deprecated public void setAuthenticator(javax.mail.Authenticator customAuthenticator)
Deprecated. 
 - 
 
 -