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

Inherits org.objectweb.jonas.mail.factory.JavaMail.

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

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.mail.factory.JavaMailSession:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JavaMailSession (String factoryName, String name, Properties mailProperties)
String getType ()
Reference getReference () throws NamingException

Detailed Description

This class provides a way for referencing mail session.
Author:
Florent Benoit

Ludovic Bert

Definition at line 49 of file JavaMailSession.java.


Constructor & Destructor Documentation

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

Constructor of a JMailSession Object.

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

Definition at line 63 of file JavaMailSession.java.


Member Function Documentation

Reference org.objectweb.jonas.mail.factory.JavaMailSession.getReference  )  throws NamingException [virtual]
 

Retrieves the Reference of the javax.mail.Session object. The Reference contains the factory used to create this object (that is the JavaMailSessionFactory) and the optional parameters used to configure the factory.

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

Implements org.objectweb.jonas.mail.factory.JavaMail.

Definition at line 84 of file JavaMailSession.java.

References org.objectweb.jonas.mail.factory.JavaMail.getAuthenticationProperties(), org.objectweb.jonas.mail.factory.JavaMail.getLogger(), and org.objectweb.jonas.mail.factory.JavaMail.getMailSessionProperties().

Here is the call graph for this function:

String org.objectweb.jonas.mail.factory.JavaMailSession.getType  )  [virtual]
 

Return the type of the factory

Returns:
the type of the mail factory

Implements org.objectweb.jonas.mail.factory.JavaMail.

Definition at line 71 of file JavaMailSession.java.


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