net.sourceforge.cruisecontrol.sourcecontrols
Class HttpFile

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.FakeUserSourceControl
      extended bynet.sourceforge.cruisecontrol.sourcecontrols.HttpFile
All Implemented Interfaces:
java.io.Serializable, SourceControl

public class HttpFile
extends FakeUserSourceControl

Checks a single file on a web server that supports the last-modified header

Author:
Brad Clarke
See Also:
Serialized Form

Constructor Summary
HttpFile()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          For this case, we don't care about the quietperiod, only that one user is modifying the build.
protected  long getURLLastModified(java.net.URL url)
           
 void setURL(java.lang.String urlString)
           
 void validate()
           
 
Methods inherited from class net.sourceforge.cruisecontrol.sourcecontrols.FakeUserSourceControl
getProperties, getSourceControlProperties, getUserName, setProperty, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpFile

public HttpFile()
Method Detail

setURL

public void setURL(java.lang.String urlString)

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface SourceControl
Specified by:
validate in class FakeUserSourceControl
Throws:
CruiseControlException
See Also:
SourceControl.validate()

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
For this case, we don't care about the quietperiod, only that one user is modifying the build.

Specified by:
getModifications in interface SourceControl
Specified by:
getModifications in class FakeUserSourceControl
Parameters:
lastBuild - date of last build
now - IGNORED
See Also:
SourceControl.getModifications(java.util.Date, java.util.Date)

getURLLastModified

protected long getURLLastModified(java.net.URL url)
                           throws java.io.IOException
Throws:
java.io.IOException