net.sourceforge.cruisecontrol.publishers
Class LinkEmailPublisher

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.publishers.EmailPublisher
      extended bynet.sourceforge.cruisecontrol.publishers.LinkEmailPublisher
All Implemented Interfaces:
Publisher, java.io.Serializable
Direct Known Subclasses:
SametimeAnnouncementPublisher

public class LinkEmailPublisher
extends EmailPublisher

Concrete implementation of the EmailPublisher abstract class. This class handles the simplest implementation where the message body is just a link to a web page detailing the build.

Author:
alden almagro, ThoughtWorks, Inc. 2002
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class net.sourceforge.cruisecontrol.publishers.EmailPublisher
EmailPublisher.Address, EmailPublisher.Alert, EmailPublisher.Always, EmailPublisher.Failure, EmailPublisher.Ignore, EmailPublisher.Success
 
Constructor Summary
LinkEmailPublisher()
           
 
Method Summary
protected  java.lang.String createMessage(XMLLogHelper logHelper)
          Creates the email message body.
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class net.sourceforge.cruisecontrol.publishers.EmailPublisher
add, add, addContentToMessage, createAlert, createAlertUserList, createAlertUserSet, createAlways, createEmailString, createFailure, createIgnore, createSubject, createSuccess, createUserList, createUserSet, getBuildResultsURL, getDefaultSuffix, getEmailMapper, getFromAddress, getMailHost, getMailPort, getMailProperties, getPassword, getReturnAddress, getReturnName, getSubjectPrefix, getUsername, matchRegExpr, publish, sendMail, setBuildResultsURL, setDefaultSuffix, setFailAsImportant, setMailHost, setMailPort, setPassword, setReportSuccess, setReturnAddress, setReturnName, setSkipUsers, setSpamWhileBroken, setSubjectPrefix, setUsername, setUseSSL, shouldSend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkEmailPublisher

public LinkEmailPublisher()
Method Detail

createMessage

protected java.lang.String createMessage(XMLLogHelper logHelper)
Creates the email message body. This implementation of EmailPublisher just creates a message that is a link to a web page with the details of the build.

Specified by:
createMessage in class EmailPublisher
Parameters:
logHelper - XMLLogHelper wrapper for the build log.
Returns:
String the link that makes up the body of the email message

validate

public void validate()
              throws CruiseControlException
Description copied from interface: Publisher
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Specified by:
validate in interface Publisher
Overrides:
validate in class EmailPublisher
Throws:
CruiseControlException