org.ow2.easybeans.component.mail
Class AbsMail

java.lang.Object
  extended by org.ow2.easybeans.component.mail.AbsMail
All Implemented Interfaces:
MailItf
Direct Known Subclasses:
MimePart, Session

public class AbsMail
extends java.lang.Object
implements MailItf

Default stuff common to common objects.

Author:
Florent BENOIT

Constructor Summary
AbsMail()
           
 
Method Summary
 Auth getAuth()
           
 java.lang.String getJNDIName()
           
 java.util.Properties getMailSessionProperties()
           
 java.lang.String getName()
           
 java.util.List<Property> getProperties()
          Gets the list of properties.
 void setAuth(Auth auth)
          Set the authenticator.
 void setJNDIName(java.lang.String jndiName)
          Set the JNDI name of this factory.
 void setName(java.lang.String name)
          Set the name of this factory.
 void setProperties(java.util.List<Property> mailProperties)
          Set the list of properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsMail

public AbsMail()
Method Detail

getMailSessionProperties

public java.util.Properties getMailSessionProperties()
Specified by:
getMailSessionProperties in interface MailItf
Returns:
the mail properties.

getName

public java.lang.String getName()
Specified by:
getName in interface MailItf
Returns:
the name of the factory.

setName

public void setName(java.lang.String name)
Set the name of this factory.

Parameters:
name - the name of this factory

getJNDIName

public java.lang.String getJNDIName()
Specified by:
getJNDIName in interface MailItf
Returns:
the JNDI name of the factory.

setJNDIName

public void setJNDIName(java.lang.String jndiName)
Set the JNDI name of this factory.

Parameters:
jndiName - the JNDI name of this factory

getProperties

public java.util.List<Property> getProperties()
Gets the list of properties.

Returns:
the list of properties.

setProperties

public void setProperties(java.util.List<Property> mailProperties)
Set the list of properties.

Parameters:
mailProperties - the list of properties.

setAuth

public void setAuth(Auth auth)
Set the authenticator.

Parameters:
auth - the given authenticator

getAuth

public Auth getAuth()
Specified by:
getAuth in interface MailItf
Returns:
the authenticator.


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