org.ow2.jonas.mail.factory
Interface JavaMail

All Superinterfaces:
Referenceable
All Known Implementing Classes:
AbstractJavaMail, JavaMailMimePartDS, JavaMailSession

public interface JavaMail
extends Referenceable

Represents a JavaMail resource.

Author:
Guillaume Sauthier

Method Summary
 Properties getAuthenticationProperties()
          Retrieves the authentication properties of this object.
 String getFactoryName()
          Return the name of this mail factory.
 Properties getMailSessionProperties()
           
 String getName()
          Return the jndi name of this object.
 Properties getSessionProperties()
          Retrieves the session properties of this object.
 String getType()
          Return the type of the factory.
 void setAuthenticationProperties(Properties props)
          Set the authentication properties.
 void setMailSessionProperties(Properties mailSessionProperties)
           
 void setName(String name)
          Set the jndi name of this object.
 void setSessionProperties(Properties props)
          Set the session properties.
 
Methods inherited from interface javax.naming.Referenceable
getReference
 

Method Detail

getName

String getName()
Return the jndi name of this object.

Returns:
the jndi name

setName

void setName(String name)
Set the jndi name of this object.

Parameters:
name - the jndi name

getFactoryName

String getFactoryName()
Return the name of this mail factory.

Returns:
name of this mail factory.

getType

String getType()
Return the type of the factory.

Returns:
the type of the mail factory

getMailSessionProperties

Properties getMailSessionProperties()
Returns:
Returns the mailSessionProperties.

setMailSessionProperties

void setMailSessionProperties(Properties mailSessionProperties)
Parameters:
mailSessionProperties - The mailSessionProperties to set.

getSessionProperties

Properties getSessionProperties()
Retrieves the session properties of this object.

Returns:
the session properties of this object.

setSessionProperties

void setSessionProperties(Properties props)
Set the session properties.

Parameters:
props - the session properties.

getAuthenticationProperties

Properties getAuthenticationProperties()
Retrieves the authentication properties of this object.

Returns:
the authentication properties of this object.

setAuthenticationProperties

void setAuthenticationProperties(Properties props)
Set the authentication properties.

Parameters:
props - the authentication properties.


Copyright © 2010 OW2 Consortium. All Rights Reserved.