|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.mail.factory.JavaMail
public abstract class JavaMail
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 | |
---|---|
JavaMail(java.lang.String factoryName,
java.lang.String name,
java.util.Properties mailProperties)
Constructor of a JavaMail Object with the given name and properties. |
Method Summary | |
---|---|
java.lang.String |
getFactoryName()
Return the name of this mail factory |
static org.objectweb.util.monolog.api.Logger |
getLogger()
|
java.util.Properties |
getMailSessionProperties()
|
java.lang.String |
getName()
Return the jndi name of this object |
abstract javax.naming.Reference |
getReference()
Retrieves the Reference of the object. |
abstract java.lang.String |
getType()
Return the type of the factory |
static void |
setLogger(org.objectweb.util.monolog.api.Logger logger)
|
void |
setMailSessionProperties(java.util.Properties mailSessionProperties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaMail(java.lang.String factoryName, java.lang.String name, java.util.Properties mailProperties)
factoryName
- the name of the factory.name
- the jndi name.mailProperties
- properties for configuring and manageing this object.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getFactoryName()
public abstract java.lang.String getType()
public abstract javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- if a naming exception was encountered while
retrieving the reference.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 java.util.Properties getMailSessionProperties()
public void setMailSessionProperties(java.util.Properties mailSessionProperties)
mailSessionProperties
- The mailSessionProperties to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |