org.rapla.plugin.mail
Class MailPlugin

java.lang.Object
  extended by org.rapla.plugin.mail.MailPlugin
All Implemented Interfaces:
PluginDescriptor

public class MailPlugin
extends Object
implements PluginDescriptor

Provides the MailToUserInterface and the MailInterface for sending mails. The MailInterface can only be used on a machine that can connect to the mailserver. While the MailToUserInterface can be called from a client, it redirects the mail request to the server, which must be able to connect to the mailserver. Example 1: MailToUserInterface mail = (MailToUserInterface) getContext().loopup( MailToUserInterface.ROLE ); mail.sendMail( subject, body ); Example 2: MailInterface mail = (MailInterface) getContext().loopup( MailInterface.ROLE ); mail.sendMail( senderMail, recipient, subject, body );

See Also:
MailInterface, MailToUserInterface

Field Summary
static String DEFAULT_MAIL_CLASS
           
static String DEFAULT_SENDER_ENTRY
           
static String MAIL_ON_LOCALHOST
           
static String MAIL_ON_SERVER
           
 
Fields inherited from interface org.rapla.framework.PluginDescriptor
PLUGIN_LIST
 
Constructor Summary
MailPlugin()
           
 
Method Summary
 Object getPluginMetaInfos(String key)
           
 void provideServices(Container container, Configuration config)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAIL_ON_SERVER

public static final String MAIL_ON_SERVER

MAIL_ON_LOCALHOST

public static final String MAIL_ON_LOCALHOST

DEFAULT_SENDER_ENTRY

public static final String DEFAULT_SENDER_ENTRY
See Also:
Constant Field Values

DEFAULT_MAIL_CLASS

public static String DEFAULT_MAIL_CLASS
Constructor Detail

MailPlugin

public MailPlugin()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

provideServices

public void provideServices(Container container,
                            Configuration config)
Specified by:
provideServices in interface PluginDescriptor

getPluginMetaInfos

public Object getPluginMetaInfos(String key)
Specified by:
getPluginMetaInfos in interface PluginDescriptor


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.