net.sourceforge.cvsgrab.web
Class ViewCvs1_0Interface
java.lang.Object
net.sourceforge.cvsgrab.CvsWebInterface
net.sourceforge.cvsgrab.web.ViewCvsInterface
net.sourceforge.cvsgrab.web.ViewCvs1_0Interface
public class ViewCvs1_0Interface
- extends ViewCvsInterface
Support for ViewCvs 1.0 interfaces to a cvs repository
- Version:
- $Revision: 1.15 $ $Date: 2005/06/24 16:38:08 $
- Author:
- Ludovic Claude
- Created:
- on 11 oct. 2003
Methods inherited from class net.sourceforge.cvsgrab.web.ViewCvsInterface |
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 |
ViewCvs1_0Interface
public ViewCvs1_0Interface(CVSGrab grabber)
- Constructor for ViewCvs1_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.
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
- Parameters:
rootUrl
- directoryName
-
- Returns:
- the url to use to access the contents of the repository
getDownloadUrl
public String getDownloadUrl(RemoteFile file)
- Overrides:
getDownloadUrl
in class ViewCvsInterface
- Parameters:
file
-
- Returns:
getRoot
public String getRoot()
- Returns:
setRoot
public void setRoot(String root)
- Parameters:
root
-
getVersionMarker
protected String getVersionMarker()
- Specified by:
getVersionMarker
in class ViewCvsInterface
adjustFile
protected void adjustFile(RemoteFile file,
org.apache.commons.jxpath.JXPathContext nodeContext)
- Overrides:
adjustFile
in class ViewCvsInterface
Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.