deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.owswatch
Class EmailSender

java.lang.Object
  extended by org.deegree.portal.owswatch.EmailSender
All Implemented Interfaces:
java.io.Serializable

public class EmailSender
extends java.lang.Object
implements java.io.Serializable

This class responsible for sending emails to the registered users in case of faulty tests to the services

Version:
$Revision: 20271 $, $Date: 2009-10-21 13:07:15 +0200 (Mi, 21 Okt 2009) $
Author:
Moataz Elmasry, last edited by: $Author: jmays $
See Also:
Serialized Form

Constructor Summary
EmailSender(java.lang.String mailFrom, java.lang.String mailServer, java.util.List<java.lang.String> receivers)
           
 
Method Summary
 void createAndSendMail(ServiceConfiguration serviceConfiguration, ValidatorResponse response, java.lang.String protocolHttpaddress)
          this method creates a mail from text fragments in the messages_en.properties and sends it to the owsWatch admin as defined in the WEB-INF/conf/owswatch/config.xml file.
protected  java.lang.String createEmailBody(ServiceConfiguration serviceConfiguration, ValidatorResponse response, java.lang.String protocolHttpaddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailSender

public EmailSender(java.lang.String mailFrom,
                   java.lang.String mailServer,
                   java.util.List<java.lang.String> receivers)
Parameters:
mailFrom -
mailServer -
receivers -
Method Detail

createEmailBody

protected java.lang.String createEmailBody(ServiceConfiguration serviceConfiguration,
                                           ValidatorResponse response,
                                           java.lang.String protocolHttpaddress)

createAndSendMail

public void createAndSendMail(ServiceConfiguration serviceConfiguration,
                              ValidatorResponse response,
                              java.lang.String protocolHttpaddress)
this method creates a mail from text fragments in the messages_en.properties and sends it to the owsWatch admin as defined in the WEB-INF/conf/owswatch/config.xml file. If sending the mail fails, an error messages is returned, else a success message is returned.

Parameters:
serviceConfiguration -
response -
protocolHttpaddress -

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org