org.objectweb.jonas.mail.factory
Interface JMailMBean

All Known Subinterfaces:
JMailMimePartDSMBean, JMailSessionMBean
All Known Implementing Classes:
JMail

public interface JMailMBean

This interface defines all the MBean methods provided by the JMail objects.

Author:
Florent Benoit, Ludovic Bert Contributor(s): Adriana Danes : Refactor code: rename the management methods (use straightforward names, as they are to be used in a Management Console)

Method Summary
 java.util.Properties getAuthenticationProperties()
          Get the authentication properties.
 java.lang.String getFactoryName()
          Get the name of the factory.
 java.lang.String getFactoryType()
          Get the type of the factory.
 java.lang.String getName()
          Get the jndi name of the factory.
 java.util.Properties getSessionProperties()
          Get the session properties.
 void setAuthenticationProperties(java.util.Properties props)
          Set the authentication properties.
 void setName(java.lang.String name)
          Set the jndi name of the factory.
 void setSessionProperties(java.util.Properties props)
          Set the session properties.
 

Method Detail

getFactoryName

public java.lang.String getFactoryName()
Get the name of the factory.
Returns:
name of the mail factory.

getName

public java.lang.String getName()
Get the jndi name of the factory.
Returns:
jndi name of the mail factory.

setName

public void setName(java.lang.String name)
Set the jndi name of the factory.
Parameters:
jndi - name of the mail factory.

getFactoryType

public java.lang.String getFactoryType()
Get the type of the factory.
Returns:
type of the mail factory.

getAuthenticationProperties

public java.util.Properties getAuthenticationProperties()
Get the authentication properties.
Returns:
properties of the authentication.

setAuthenticationProperties

public void setAuthenticationProperties(java.util.Properties props)
Set the authentication properties.
Parameters:
props - the authentication properties.

getSessionProperties

public java.util.Properties getSessionProperties()
Get the session properties.
Returns:
the properties of Session.

setSessionProperties

public void setSessionProperties(java.util.Properties props)
Set the session properties.
Parameters:
props - the Session properties.