|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.openeai.OpenEaiObject
The parent of all OpenEAI related objects. This class makes several components that are part of OpenEAI frameworks available to descendants.
| Field Summary | |
static org.apache.log4j.Category |
logger
|
| Constructor Summary | |
OpenEaiObject()
Constructor |
|
| Method Summary | |
void |
addLog4jProperty(java.lang.String key,
java.lang.String value)
Adds an individual Property (name/value) to this object that will be used by the default initializeLog4j() method. |
java.lang.String |
getAppName()
Returns the app name associated to this object. |
boolean |
getDebug()
|
java.lang.String |
getFromAddr()
Returns the from email address associated to the mail service in this object. |
java.lang.Object[] |
getLog4jProperties()
Returns log4j properties as an Object array. |
java.lang.String |
getMailHost()
Returns the mail host associated to the mail service in this object. |
MailService |
getMailService()
Returns the MailService to be used within this instance of the class. |
java.util.Properties |
getProperties()
Returns the Properties to used within this instance of the class. |
java.lang.String |
getToAddr()
Returns the to email address associated to the mail service in this object. |
void |
initializeLog4j()
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties contained in the log4j properties object in this object. |
void |
initializeLog4j(java.util.Properties props)
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the Properties object passed in. |
void |
initializeLog4j(java.lang.String fileName)
Initializes the static Log4J logger used by all decendants of OpenEaiObject with properties found in the file name passed in (a properties file). |
void |
setAppName(java.lang.String in)
Sets the app name associated to this object. |
void |
setDebug(boolean in)
Allows decendants of OpenEaiObject to support default Clone behavior. |
void |
setFromAddr(java.lang.String in)
Sets the from email address associated to the mail service in this object. |
void |
setMailHost(java.lang.String in)
Sets the mail host associated to the mail service in this object. |
void |
setMailService(MailService in)
Sets the MailService to be used within this instance of the class. |
void |
setProperties(java.util.Properties in)
Sets the properties to be used within this instance of the class. |
void |
setToAddr(java.lang.String in)
Sets the to email address associated to the mail service in this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static org.apache.log4j.Category logger
| Constructor Detail |
public OpenEaiObject()
| Method Detail |
public void initializeLog4j()
public void initializeLog4j(java.lang.String fileName)
public void initializeLog4j(java.util.Properties props)
public void addLog4jProperty(java.lang.String key,
java.lang.String value)
public java.lang.Object[] getLog4jProperties()
public void setDebug(boolean in)
public boolean getDebug()
public void setMailHost(java.lang.String in)
public java.lang.String getMailHost()
public void setFromAddr(java.lang.String in)
public java.lang.String getFromAddr()
public void setToAddr(java.lang.String in)
public java.lang.String getToAddr()
public void setAppName(java.lang.String in)
public java.lang.String getAppName()
public void setMailService(MailService in)
in - MailService the MailService to use within this instance.
public MailService getMailService()
public void setProperties(java.util.Properties in)
in - Properties the Properties to use within this instance.
public java.util.Properties getProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||