net.sourceforge.cruisecontrol.publishers
Class HTTPPublisher

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

public class HTTPPublisher
extends java.lang.Object
implements Publisher

Used to execute an HTTP request

Author:
Jonathan Gerrish
See Also:
Serialized Form

Constructor Summary
HTTPPublisher()
           
 
Method Summary
 NamedXPathAwareChild createParameter()
          An HTTP request attribute-value parameter pair, represented by a NamedXPathAwareChild to provide for dymanic parameter value resolution from the either the cruisecontrol log or other file.
 void publish(org.jdom.Element cruisecontrolLog)
          Publish the results to a URL.
 void setRequestMethod(java.lang.String requestMethod)
          Method to specify the HTTP Request method to use for this request
 void setUrl(java.lang.String url)
          Method to specify the URL used to publish the build result
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPPublisher

public HTTPPublisher()
Method Detail

publish

public void publish(org.jdom.Element cruisecontrolLog)
             throws CruiseControlException
Publish the results to a URL.

Specified by:
publish in interface Publisher
Parameters:
cruisecontrolLog - of the current build
Throws:
CruiseControlException - - on any error

validate

public void validate()
              throws CruiseControlException
Called after the configuration is read to make sure that all the mandatory parameters were specified..

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

setUrl

public void setUrl(java.lang.String url)
Method to specify the URL used to publish the build result

Parameters:
url - URL to which to publish build result

setRequestMethod

public void setRequestMethod(java.lang.String requestMethod)
Method to specify the HTTP Request method to use for this request

Parameters:
requestMethod - String representing the HTTP Request method

createParameter

public NamedXPathAwareChild createParameter()
An HTTP request attribute-value parameter pair, represented by a NamedXPathAwareChild to provide for dymanic parameter value resolution from the either the cruisecontrol log or other file.

Returns:
NamedXPathAwareChild representing attribute-value HTTP parameter pair.
See Also:
NamedXPathAwareChild