public class MailConfiguration extends Object implements Serializable
Constructor and Description |
---|
MailConfiguration(MailResourceIntf mailRes)
Construct a specification of mail configuration.
|
MailConfiguration(String username,
String mailFrom,
String mailHost)
Construct a specification of mail configuration with the given username,
Mail From Address and mail hostname.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAuth()
Get whether authentication is enabled for the mail session the server will provide
|
String |
getDescription()
Get the mail description for the mail session the server will provide.
|
boolean |
getEnabled()
Get the mail enable flag for the mail session the server will provide.
|
String |
getJndiName()
Get the mail JNDI name for the mail session the server will provide.
|
boolean |
getMailDebug()
Get the mail debug flag for the mail session the server will provide.
|
String |
getMailFrom()
Get the mail from address for the mail session the server will provide.
|
String |
getMailHost()
Get the mail hostname for the mail session the server will provide.
|
Properties |
getMailProperties()
Get the mail session properties as per JavaMail.
|
String |
getMailStoreProtocol()
Get the default Message Access Protocol for the mail session the server
will provide.
|
String |
getMailStoreProtocolClass()
Get the default Message Access Protocol class for the mail session the
server will provide.
|
String |
getMailTransportProtocol()
Get the default Transport Protocol for the mail session the server will
provide.
|
String |
getMailTransportProtocolClass()
Get the default Transport Protocol class for the mail session the server
will provide.
|
String |
getPassword()
Get the password for the mail session the server will provide.
|
String |
getUsername()
Get the username for the mail session the server will provide.
|
void |
print(StringBuilder toStringBuilder)
A formatted representation of my state.
|
public MailConfiguration(String username, String mailFrom, String mailHost)
the
- username.the
- from address.the
- mail hostname.public MailConfiguration(MailResourceIntf mailRes)
public String getUsername()
public String getPassword()
public boolean getAuth()
public String getMailFrom()
public String getMailHost()
public String getMailStoreProtocol()
public String getMailTransportProtocol()
public String getMailStoreProtocolClass()
public String getMailTransportProtocolClass()
public boolean getMailDebug()
public String getDescription()
public String getJndiName()
public boolean getEnabled()
public Properties getMailProperties()
public void print(StringBuilder toStringBuilder)
Copyright © 2019. All rights reserved.