Configuration
PTG_VERSION | Definition, possible values, and default values are the same as the |
| "oracle.panama.version" in the properties file. |
STUDIO | Definition, possible values, and default values are the same as the |
| "studio" in the properties file |
|
|
All the other parameters will be read from the properties file, or the default values will be used. If other parameters are defined property, you can bypass the login. Note that all parameters values are string. Also, if a parameter is defined through request, it will override the corresponding parameter in the properties file.
2.3.0.3.3 Mail Configuration Class
For Mail configuration, you can define your own configuration class to do more advanced configuration. For example, select mail server host name based on runtime information.
To do this, you must define a class which implements
oracle.panama.module.communicate.mail.util.IConfig, and in package oracle.panama.module.communicate.mail.util. In the class, you can define the following methods:
Table 2–5 Mail configuration class
String getMailService(Object o) | Returns the mail service. The current |
| supported services are IMAP and POP3. |
String getDomain(Object o) | Returns the default mail domain. |
String getServerName(Object o) | Returns the mail server host name. |
int getServerPort(Object o) | Returns the mail server port number. Make |
| sure it is a valid number. |
String | Returns the SMTP server host name. |
getSMTPServerName(Object o) |
|
int getSMTPServerPort(Object o) | Returns the SMTP server port number. Make |
| sure it is a valid number. |
String getSMPTLogin(Object o) | Returns the login name of the SMTP server. |
| If login for SMTP is not required, this method |
| should return null or empty string (""), |
| otherwise, the value will be used for SMTP |
| login. |
FastForward