net.sourceforge.cvsgrab.web
Class CvsWeb1_0Interface
java.lang.Object
net.sourceforge.cvsgrab.CvsWebInterface
net.sourceforge.cvsgrab.web.ViewCvsInterface
net.sourceforge.cvsgrab.web.CvsWeb1_0Interface
public class CvsWeb1_0Interface
- extends ViewCvsInterface
Support for CvsWeb 1.0 interfaces to a cvs repository
- Version:
- $Revision: 1.8 $ $Date: 2005/06/24 00:04:46 $
- Author:
- Ludovic Claude
- Created:
- on 7 dec. 2003
Methods inherited from class net.sourceforge.cvsgrab.web.ViewCvsInterface |
adjustFile, getCheckoutPath, getCvsrootParam, getDirectories, getDirectoriesXpath, getDirectoryXpath, getFileNameXpath, getFiles, getFilesXpath, getFileVersionXpath, getId, getProjectRoot, getTagParam, getType, getWebInterfaceType, guessWebProperties, init, quote, setCheckoutPath, setCvsrootParam, setDirectoriesXpath, setDirectoryXpath, setFileNameXpath, setFilesXpath, setFileVersionXpath, setTagParam, setType, setWebInterfaceType |
Methods inherited from class net.sourceforge.cvsgrab.CvsWebInterface |
findInterface, getBaseUrls, getGrabber, getInterface, getInterfaceIds, getQueryParams, getVersionTag, getWebProperties, presetMatch, registerDocument, setQueryParams, setVersionTag, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CvsWeb1_0Interface
public CvsWeb1_0Interface(CVSGrab grabber)
- Constructor for CvsWeb1_0Interface
detect
public void detect(Document htmlPage)
throws MarkerNotFoundException,
InvalidVersionException
- Detects if the web page is compatible with this web interface, and if yes initialize it.
- Overrides:
detect
in class ViewCvsInterface
- Parameters:
htmlPage
- The web page
- Throws:
MarkerNotFoundException
- if the version marker for the web interface was not found
InvalidVersionException
- if the version detected is incompatible with the version supported by this web interface.
getVersionMarker
protected String getVersionMarker()
-
- Specified by:
getVersionMarker
in class ViewCvsInterface
getBaseUrl
public String getBaseUrl()
- Overrides:
getBaseUrl
in class ViewCvsInterface
- Returns:
- the base url to use when trying to auto-detect this type of web interface
getAltBaseUrl
public String getAltBaseUrl()
- Overrides:
getAltBaseUrl
in class CvsWebInterface
- Returns:
- the alternate base url to use when trying to auto-detect this type of web interface
getDirectoryUrl
public String getDirectoryUrl(String rootUrl,
String directoryName)
- Overrides:
getDirectoryUrl
in class ViewCvsInterface
- Returns:
- the url to use to access the contents of the repository
getDownloadUrl
public String getDownloadUrl(RemoteFile file)
- Overrides:
getDownloadUrl
in class ViewCvsInterface
- Returns:
getRoot
public String getRoot()
setRoot
public void setRoot(String root)
Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.