| |
|
| java.lang.Object org.objectweb.jonas.mail.factory.JavaMail
All known Subclasses: org.objectweb.jonas.mail.factory.JavaMailMimePartDS, org.objectweb.jonas.mail.factory.JavaMailSession,
JavaMail | abstract public class JavaMail implements Serializable,Referenceable(Code) | | This class implements JOnAS mail factory objects. It gets the properties from mail factory properties file
and build a properties object for the Session.
author: Florent Benoit author: Ludovic Bert author: Contributor(s): author: Adriana Danes : author: Refactor code: rename the management methods (use straightforward author: names, as they are to be used in a Management Console) author: 03/04/01 : JavaMail extends ReconfigDispatcher in order to send reconfiguration Notifications to ReconfigManager author: Markus Karg : Change the JOnAS mail factory initialisation strategy in order author: to allow any initialisation parameters for a javax.mail.Session object (not author: only a known set pf initialisation parameters as before). author: Adriana Danes : author: 03/11/20 : J2EEManagement conformance - replaces old JMail class |
Constructor Summary | |
public | JavaMail(String factoryName, String name, Properties mailProperties) Constructor of a JavaMail Object with the given name and properties. |
JavaMail | public JavaMail(String factoryName, String name, Properties mailProperties)(Code) | | Constructor of a JavaMail Object with the given name and properties.
Parameters: factoryName - the name of the factory. Parameters: name - the jndi name. Parameters: mailProperties - properties for configuring and manageing this object. |
getAuthenticationProperties | Properties getAuthenticationProperties()(Code) | | Retrieves the authentication properties of this object.
the authentication properties of this object. |
getFactoryName | public String getFactoryName()(Code) | | Return the name of this mail factory
name of this mail factory. |
getLogger | public static Logger getLogger()(Code) | | Returns the logger. |
getMailSessionProperties | public Properties getMailSessionProperties()(Code) | | Returns the mailSessionProperties. |
getName | public String getName()(Code) | | Return the jndi name of this object
the jndi name |
getReference | abstract public Reference getReference() throws NamingException(Code) | | Retrieves the Reference of the object.
The Reference contains the factory used to create this object
and the optional parameters used to configure the factory.
the non-null Reference of the object. throws: NamingException - if a naming exception was encountered whileretrieving the reference. |
getSessionProperties | Properties getSessionProperties()(Code) | | Retrieves the session properties of this object.
the session properties of this object. |
getType | abstract public String getType()(Code) | | Return the type of the factory
the type of the mail factory |
setAuthenticationProperties | void setAuthenticationProperties(Properties props)(Code) | | Set the authentication properties.
Parameters: props - the authentication properties. |
setLogger | public static void setLogger(Logger logger)(Code) | | Parameters: logger - The logger to set. |
setMailSessionProperties | public void setMailSessionProperties(Properties mailSessionProperties)(Code) | | Parameters: mailSessionProperties - The mailSessionProperties to set. |
setName | void setName(String name)(Code) | | Set the jndi name of this object.
Parameters: name - the jndi name |
setSessionProperties | void setSessionProperties(Properties props)(Code) | | Set the session properties.
Parameters: props - the session properties. |
|
|
|