org.ow2.easybeans.component.mail.factory
Class JavaMailMimePartDataSourceRef

java.lang.Object
  extended by org.ow2.easybeans.component.mail.factory.AbsJavaMailRef
      extended by org.ow2.easybeans.component.mail.factory.JavaMailMimePartDataSourceRef
All Implemented Interfaces:
javax.naming.Referenceable

public class JavaMailMimePartDataSourceRef
extends AbsJavaMailRef

Defines a referenceable object for a MimePartDatasource Mail object.

Author:
Florent BENOIT

Constructor Summary
JavaMailMimePartDataSourceRef()
          Build a new javax.mail.internet.MimePartDataSource reference.
 
Method Summary
 Address[] getBccRecipients()
           
 Address[] getCcRecipients()
           
 javax.naming.Reference getReference()
          Retrieves the Reference of this object.
 java.lang.String getSubject()
           
 Address[] getToRecipients()
           
 java.lang.String getType()
          Return the type of the factory.
 void setBccRecipients(Address[] bccRecipients)
          Sets the BCC recipients.
 void setCcRecipients(Address[] ccRecipients)
          Sets the CC recipients.
 void setSubject(java.lang.String subject)
          Sets the subject of the mail.
 void setToRecipients(Address[] toRecipients)
          Sets the TO recipients.
 
Methods inherited from class org.ow2.easybeans.component.mail.factory.AbsJavaMailRef
getAuthName, getAuthPass, getJNDIName, getName, getProperties, putObject, setAuthName, setAuthPass, setJNDIName, setName, setProperties, updateRefAddr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaMailMimePartDataSourceRef

public JavaMailMimePartDataSourceRef()
Build a new javax.mail.internet.MimePartDataSource reference.

Method Detail

getType

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

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

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Retrieves the Reference of this object.

Specified by:
getReference in interface javax.naming.Referenceable
Specified by:
getReference in class AbsJavaMailRef
Returns:
The non-null Reference of this object.
Throws:
javax.naming.NamingException - If a naming exception was encountered while retrieving the reference.

getToRecipients

public Address[] getToRecipients()
Returns:
array of TO recipients.

setToRecipients

public void setToRecipients(Address[] toRecipients)
Sets the TO recipients.

Parameters:
toRecipients - the given recipients

getCcRecipients

public Address[] getCcRecipients()
Returns:
array of CC recipients.

setCcRecipients

public void setCcRecipients(Address[] ccRecipients)
Sets the CC recipients.

Parameters:
ccRecipients - the given recipients

getBccRecipients

public Address[] getBccRecipients()
Returns:
array of BCC recipients.

setBccRecipients

public void setBccRecipients(Address[] bccRecipients)
Sets the BCC recipients.

Parameters:
bccRecipients - the given recipients

getSubject

public java.lang.String getSubject()
Returns:
the subject that can be used.

setSubject

public void setSubject(java.lang.String subject)
Sets the subject of the mail.

Parameters:
subject - the given subject


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.