www.element4solution.com

e4s.mail
Class E4MailSettings

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.util.E4Settings
          extended by e4s.mail.E4MailSettings
All Implemented Interfaces:
E4MailSettings_Intf

public class E4MailSettings
extends E4Settings
implements E4MailSettings_Intf

System settings for mail functions.

Since:
JDK 1.4
See Also:
E4SendMail, E4ReceiveMail, E4SmtpAuthenticator

Nested Class Summary
 
Nested classes/interfaces inherited from class e4s.util.E4Settings
E4Settings.DATATYPE_DEF
 
Field Summary
static java.lang.String MAIL_ENABLED
          Is mail enabled for the application?
static java.lang.String MAIL_FROM
          Definition for the mail "from".
static java.lang.String MAIL_LISTEN_INTERVALL_SECONDS
          Listening interval for incoming emails
static java.lang.String MAIL_SMTP_HOST
          Definition for the mail host.
static java.lang.String MAIL_SMTP_PASSWORD
          Definition for the mail user (authentification to the mail server).
static java.lang.String MAIL_SMTP_USER
          Definition for the mail user (authentification to the mail server).
static java.lang.String MAIL_TEMP_PATH
          Temporary mail path (for receiving mails)
 
Fields inherited from class e4s.util.E4Settings
_DATATYPE_BOOLEAN, _DATATYPE_NUMBER, _DATATYPE_PASSWORD, _DATATYPE_SELECTION, _DATATYPE_STRING, INCLUDE_CHAR, SERVLET_WEB_XML_PARAMETER_PROPERTIES
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4MailSettings()
           
 
Method Summary
static java.lang.String _getMailFrom()
          Get definition for the mail from.
static java.lang.String _getMailSmptHost()
          Get definition for the mail host.
static java.lang.String _getMailSmtpPassword()
          Get mail server authentification (password).
static java.lang.String _getMailSmtpUser()
          Get mail server authentification (user).
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static void defineDatatypes()
           
 boolean getAuthentification()
           
static int getListeningIntervalSeconds()
          Get listening interval for incoming emails.
 java.lang.String getMailFrom()
          Get definition for the mail from.
 java.lang.String getMailSmptHost()
          Get definition for the mail host.
 java.lang.String getMailSmtpPassword()
          Get mail server authentification (password).
 java.lang.String getMailSmtpUser()
          Get mail server authentification (user).
static java.lang.String getTempPath()
           
static boolean isMailEnabled()
           
static void validate(HTML html)
           
 
Methods inherited from class e4s.util.E4Settings
defineDatatype, defineDatatype, defineDatatype, defineDatatype, defineDatatype, defineDatatype, definePropertyFile, getAppCoreLanguage, getDatatype, getDefaultAlias, getDocBase, getErrorMailto, getForceUploadLowercase, getHtmlStrict, getHttpAddr, getHttpRoot, getLoginPath, getMaxUploadSize, getMenuStyle, getPredefinedKeys, getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyBool, getPropertyFile, getPropertyInt, getPropertyLong, getServer, getSysLogFilePath, getSysTempPath, getSysTraceLogPath, preventBackButton, preventRightClick, propertyNames, readIniFile, reloadFile, removeProperty, setHttpAddr, setProperty, setProperty, setProperty
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAIL_SMTP_HOST

public static final java.lang.String MAIL_SMTP_HOST
Definition for the mail host. e.g. "smtp.mycompany.com".

See Also:
getMailSmptHost(), Constant Field Values

MAIL_FROM

public static final java.lang.String MAIL_FROM
Definition for the mail "from". e.g. "office@mycompany.com".

See Also:
getMailFrom(), Constant Field Values

MAIL_SMTP_USER

public static final java.lang.String MAIL_SMTP_USER
Definition for the mail user (authentification to the mail server). e.g. "office".

See Also:
getMailSmtpUser(), Constant Field Values

MAIL_SMTP_PASSWORD

public static final java.lang.String MAIL_SMTP_PASSWORD
Definition for the mail user (authentification to the mail server).

See Also:
getMailSmtpPassword(), Constant Field Values

MAIL_ENABLED

public static final java.lang.String MAIL_ENABLED
Is mail enabled for the application?

See Also:
Constant Field Values

MAIL_TEMP_PATH

public static final java.lang.String MAIL_TEMP_PATH
Temporary mail path (for receiving mails)

See Also:
Constant Field Values

MAIL_LISTEN_INTERVALL_SECONDS

public static final java.lang.String MAIL_LISTEN_INTERVALL_SECONDS
Listening interval for incoming emails

See Also:
Constant Field Values
Constructor Detail

E4MailSettings

public E4MailSettings()
Method Detail

_getMailSmptHost

public static java.lang.String _getMailSmptHost()
Get definition for the mail host.

Returns:
the mail host

getMailSmptHost

public java.lang.String getMailSmptHost()
Get definition for the mail host.

Specified by:
getMailSmptHost in interface E4MailSettings_Intf
Returns:
the mail host

_getMailFrom

public static java.lang.String _getMailFrom()
Get definition for the mail from.

Returns:
the mail from address
See Also:
E4SendMail.getFrom(), e4s.mail.E4SendMail#setFrom()

getMailFrom

public java.lang.String getMailFrom()
Get definition for the mail from.

Specified by:
getMailFrom in interface E4MailSettings_Intf
Returns:
the mail from address
See Also:
E4SendMail.getFrom(), e4s.mail.E4SendMail#setFrom()

_getMailSmtpUser

public static java.lang.String _getMailSmtpUser()
Get mail server authentification (user).

Returns:
the authentification (user name) for the mail server
See Also:
getMailSmtpPassword()

getMailSmtpUser

public java.lang.String getMailSmtpUser()
Get mail server authentification (user).

Specified by:
getMailSmtpUser in interface E4MailSettings_Intf
Returns:
the authentification (user name) for the mail server
See Also:
getMailSmtpPassword()

_getMailSmtpPassword

public static java.lang.String _getMailSmtpPassword()
Get mail server authentification (password).

Returns:
the authentification (password) for the mail server
See Also:
getMailSmtpUser()

getMailSmtpPassword

public java.lang.String getMailSmtpPassword()
Get mail server authentification (password).

Specified by:
getMailSmtpPassword in interface E4MailSettings_Intf
Returns:
the authentification (password) for the mail server
See Also:
getMailSmtpUser()

getTempPath

public static java.lang.String getTempPath()

getListeningIntervalSeconds

public static int getListeningIntervalSeconds()
Get listening interval for incoming emails.

See Also:
MAIL_LISTEN_INTERVALL_SECONDS

isMailEnabled

public static boolean isMailEnabled()

defineDatatypes

public static void defineDatatypes()

getAuthentification

public boolean getAuthentification()
Specified by:
getAuthentification in interface E4MailSettings_Intf

validate

public static void validate(HTML html)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com