net.sourceforge.cruisecontrol.publishers
Class LinkJabberPublisher

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.publishers.JabberPublisher
      extended bynet.sourceforge.cruisecontrol.publishers.LinkJabberPublisher
All Implemented Interfaces:
Publisher, java.io.Serializable

public class LinkJabberPublisher
extends JabberPublisher

Implementation of the Jabber publisher which publishes a link to the build results via Jabber Instant Messaging framework.

Version:
1.0
Author:
Jonas Edgeworth
See Also:
JabberPublisher, Serialized Form

Constructor Summary
LinkJabberPublisher()
           
 
Method Summary
protected  java.lang.String createMessage(XMLLogHelper logHelper)
          Creates the IM message body.
 void setBuildResultsURL(java.lang.String buildResultsURL)
           
 void validate()
          Validate that all the mandatory parameters were specified in order to properly initial the Jabber client service.
 
Methods inherited from class net.sourceforge.cruisecontrol.publishers.JabberPublisher
init, publish, setChatroom, setHost, setPassword, setPort, setRecipient, setService, setSsl, setUsername
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkJabberPublisher

public LinkJabberPublisher()
Method Detail

setBuildResultsURL

public void setBuildResultsURL(java.lang.String buildResultsURL)

validate

public void validate()
              throws CruiseControlException
Validate that all the mandatory parameters were specified in order to properly initial the Jabber client service. Note that this is called after the configuration file is read.

Specified by:
validate in interface Publisher
Overrides:
validate in class JabberPublisher
Throws:
CruiseControlException - if there was a configuration error.

createMessage

protected java.lang.String createMessage(XMLLogHelper logHelper)
                                  throws CruiseControlException
Creates the IM message body. This currently creates a message that is a link to a web page with the details of the build.

Specified by:
createMessage in class JabberPublisher
Returns:
String the link that makes up the body of the IM message
Throws:
CruiseControlException