org.objectweb.jonas.mail.factory
Class JavaMailMimePartDS

java.lang.Object
  extended by org.objectweb.jonas.mail.factory.JavaMail
      extended by org.objectweb.jonas.mail.factory.JavaMailMimePartDS
All Implemented Interfaces:
java.io.Serializable, javax.naming.Referenceable

public class JavaMailMimePartDS
extends JavaMail

This class provides a way for referencing mail session.

Author:
Florent Benoit, Ludovic Bert
See Also:
Serialized Form

Field Summary
protected static java.lang.String MIMEMESSAGE_BCC
          JOnAS-specific property for Mime Messages configuration (mail.bcc)
protected static java.lang.String MIMEMESSAGE_CC
          JOnAS-specific property for Mime Messages configuration (mail.cc)
protected static java.lang.String MIMEMESSAGE_SUBJECT
          JOnAS-specific property for Mime Messages configuration (mail.subject)
protected static java.lang.String MIMEMESSAGE_TO
          JOnAS-specific property for Mime Messages configuration (mail.to)
 
Constructor Summary
JavaMailMimePartDS(java.lang.String factoryName, java.lang.String name, java.util.Properties mailProperties)
          Constructor of a JavaMailMimePartDS Object
 
Method Summary
 javax.naming.Reference getReference()
          Retrieves the Reference of the javax.mail.MimePartDataSource object.
 java.lang.String getType()
          Return the type of the factory
 
Methods inherited from class org.objectweb.jonas.mail.factory.JavaMail
getFactoryName, getLogger, getMailSessionProperties, getName, setLogger, setMailSessionProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIMEMESSAGE_TO

protected static final java.lang.String MIMEMESSAGE_TO
JOnAS-specific property for Mime Messages configuration (mail.to)

See Also:
Constant Field Values

MIMEMESSAGE_CC

protected static final java.lang.String MIMEMESSAGE_CC
JOnAS-specific property for Mime Messages configuration (mail.cc)

See Also:
Constant Field Values

MIMEMESSAGE_BCC

protected static final java.lang.String MIMEMESSAGE_BCC
JOnAS-specific property for Mime Messages configuration (mail.bcc)

See Also:
Constant Field Values

MIMEMESSAGE_SUBJECT

protected static final java.lang.String MIMEMESSAGE_SUBJECT
JOnAS-specific property for Mime Messages configuration (mail.subject)

See Also:
Constant Field Values
Constructor Detail

JavaMailMimePartDS

public JavaMailMimePartDS(java.lang.String factoryName,
                          java.lang.String name,
                          java.util.Properties mailProperties)
Constructor of a JavaMailMimePartDS Object

Parameters:
factoryName - the name of the factory.
name - the name of this object.
mailProperties - properties for configuring this object.
Method Detail

getType

public java.lang.String getType()
Return the type of the factory

Specified by:
getType in class JavaMail
Returns:
the type of the mail factory

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Retrieves the Reference of the javax.mail.MimePartDataSource object. The Reference contains the factory used to create this object (that is the JavaMimePartDSFactory) and the optional parameters used to configure the factory.

Specified by:
getReference in interface javax.naming.Referenceable
Specified by:
getReference in class JavaMail
Returns:
the non-null Reference of the javax.mail.MimePartDataSource object.
Throws:
javax.naming.NamingException - if a naming exception was encountered while retrieving the reference.