|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.mail.internal.factory.AbstractJavaMail
public abstract class AbstractJavaMail
This class implements JOnAS mail factory objects. It gets the properties from mail factory properties file and build a properties object for the Session.
Constructor Summary | |
---|---|
AbstractJavaMail(String factoryName,
String name,
Properties mailProperties,
MailService mailService)
Constructor of a JavaMail Object with the given name and properties. |
Method Summary | |
---|---|
Properties |
getAuthenticationProperties()
Retrieves the authentication properties of this object. |
String |
getFactoryName()
Return the name of this mail factory. |
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
MailService |
getMailService()
|
Properties |
getMailSessionProperties()
|
String |
getName()
Return the jndi name of this object. |
Properties |
getSessionProperties()
Retrieves the session properties of this object. |
void |
setAuthenticationProperties(Properties props)
Set the authentication properties. |
static void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
|
void |
setMailSessionProperties(Properties mailSessionProperties)
|
void |
setName(String name)
Set the jndi name of this object. |
void |
setSessionProperties(Properties props)
Set the session properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.mail.factory.JavaMail |
---|
getType |
Methods inherited from interface javax.naming.Referenceable |
---|
getReference |
Constructor Detail |
---|
public AbstractJavaMail(String factoryName, String name, Properties mailProperties, MailService mailService)
factoryName
- the name of the factory.name
- the jndi name.mailProperties
- properties for configuring and manageing this object.Method Detail |
---|
public String getName()
JavaMail
getName
in interface JavaMail
public void setName(String name)
setName
in interface JavaMail
name
- the jndi namepublic String getFactoryName()
JavaMail
getFactoryName
in interface JavaMail
public Properties getSessionProperties()
getSessionProperties
in interface JavaMail
public void setSessionProperties(Properties props)
setSessionProperties
in interface JavaMail
props
- the session properties.public Properties getAuthenticationProperties()
getAuthenticationProperties
in interface JavaMail
public void setAuthenticationProperties(Properties props)
setAuthenticationProperties
in interface JavaMail
props
- the authentication properties.public static org.objectweb.util.monolog.api.Logger getLogger()
public static void setLogger(org.objectweb.util.monolog.api.Logger logger)
logger
- The logger to set.public Properties getMailSessionProperties()
getMailSessionProperties
in interface JavaMail
public void setMailSessionProperties(Properties mailSessionProperties)
setMailSessionProperties
in interface JavaMail
mailSessionProperties
- The mailSessionProperties to set.public MailService getMailService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |