org.objectweb.jonas.mail.factory.JavaMail Class Reference

Inherited by org.objectweb.jonas.mail.factory.JavaMailMimePartDS, and org.objectweb.jonas.mail.factory.JavaMailSession.

Inheritance diagram for org.objectweb.jonas.mail.factory.JavaMail:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 JavaMail (String factoryName, String name, Properties mailProperties)
String getName ()
String getFactoryName ()
abstract String getType ()
abstract Reference getReference () throws NamingException
Properties getMailSessionProperties ()
void setMailSessionProperties (Properties mailSessionProperties)

Static Public Member Functions

Logger getLogger ()
void setLogger (Logger logger)

Package Functions

void setName (String name)
Properties getSessionProperties ()
void setSessionProperties (Properties props)
Properties getAuthenticationProperties ()
void setAuthenticationProperties (Properties props)

Detailed Description

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

Ludovic Bert Contributor(s): Adriana Danes : Refactor code: rename the management methods (use straightforward names, as they are to be used in a Management Console) 03/04/01 : JavaMail extends ReconfigDispatcher in order to send reconfiguration Notifications to ReconfigManager

Markus Karg : Change the JOnAS mail factory initialisation strategy in order to allow any initialisation parameters for a javax.mail.Session object (not only a known set pf initialisation parameters as before).

Adriana Danes : 03/11/20 : J2EEManagement conformance - replaces old JMail class

Definition at line 63 of file JavaMail.java.


Constructor & Destructor Documentation

org.objectweb.jonas.mail.factory.JavaMail.JavaMail String  factoryName,
String  name,
Properties  mailProperties
 

Constructor of a JavaMail Object with the given name and properties.

Parameters:
factoryName the name of the factory.
name the jndi name.
mailProperties properties for configuring and manageing this object.

Definition at line 107 of file JavaMail.java.


Member Function Documentation

Properties org.objectweb.jonas.mail.factory.JavaMail.getAuthenticationProperties  )  [package]
 

Retrieves the authentication properties of this object.

Returns:
the authentication properties of this object.

Definition at line 201 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.getAuthenticationProperties(), org.objectweb.jonas.mail.factory.JavaMailSession.getReference(), and org.objectweb.jonas.mail.factory.JavaMailMimePartDS.getReference().

String org.objectweb.jonas.mail.factory.JavaMail.getFactoryName  ) 
 

Return the name of this mail factory

Returns:
name of this mail factory.

Definition at line 161 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.getFactoryName().

Logger org.objectweb.jonas.mail.factory.JavaMail.getLogger  )  [static]
 

Returns:
Returns the logger.

Definition at line 236 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailSession.getReference(), org.objectweb.jonas.mail.factory.JavaMailMimePartDS.JavaMailMimePartDS(), and org.objectweb.jonas.mail.factory.JavaMailMimePartDS.setMimeMessageProperties().

Properties org.objectweb.jonas.mail.factory.JavaMail.getMailSessionProperties  ) 
 

Returns:
Returns the mailSessionProperties.

Definition at line 248 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailSession.getReference(), org.objectweb.jonas.mail.factory.JavaMailMimePartDS.getReference(), and org.objectweb.jonas.mail.factory.JavaMailMimePartDS.JavaMailMimePartDS().

String org.objectweb.jonas.mail.factory.JavaMail.getName  ) 
 

Return the jndi name of this object

Returns:
the jndi name

Definition at line 139 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.getName(), and org.objectweb.jonas.mail.MailServiceImpl.unbindMailFactoryMBean().

abstract Reference org.objectweb.jonas.mail.factory.JavaMail.getReference  )  throws NamingException [pure virtual]
 

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.

Returns:
the non-null Reference of the object.
Exceptions:
NamingException if a naming exception was encountered while retrieving the reference.

Implemented in org.objectweb.jonas.mail.factory.JavaMailMimePartDS, and org.objectweb.jonas.mail.factory.JavaMailSession.

Properties org.objectweb.jonas.mail.factory.JavaMail.getSessionProperties  )  [package]
 

Retrieves the session properties of this object.

Returns:
the session properties of this object.

Definition at line 176 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.getSessionProperties().

abstract String org.objectweb.jonas.mail.factory.JavaMail.getType  )  [pure virtual]
 

Return the type of the factory

Returns:
the type of the mail factory

Implemented in org.objectweb.jonas.mail.factory.JavaMailMimePartDS, and org.objectweb.jonas.mail.factory.JavaMailSession.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.getFactoryType().

void org.objectweb.jonas.mail.factory.JavaMail.setAuthenticationProperties Properties  props  )  [package]
 

Set the authentication properties.

Parameters:
props the authentication properties.

Definition at line 209 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.setAuthenticationProperties().

void org.objectweb.jonas.mail.factory.JavaMail.setLogger Logger  logger  )  [static]
 

Parameters:
logger The logger to set.

Definition at line 242 of file JavaMail.java.

void org.objectweb.jonas.mail.factory.JavaMail.setMailSessionProperties Properties  mailSessionProperties  ) 
 

Parameters:
mailSessionProperties The mailSessionProperties to set.

Definition at line 254 of file JavaMail.java.

void org.objectweb.jonas.mail.factory.JavaMail.setName String  name  )  [package]
 

Set the jndi name of this object.

Parameters:
name the jndi name

Definition at line 147 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.setName().

void org.objectweb.jonas.mail.factory.JavaMail.setSessionProperties Properties  props  )  [package]
 

Set the session properties.

Parameters:
props the session properties.

Definition at line 184 of file JavaMail.java.

Referenced by org.objectweb.jonas.mail.factory.JavaMailResource.setSessionProperties().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:05 2005 for JOnAS by  doxygen 1.3.9.1