net.sourceforge.cvsgrab.web
Class FishEye1_0Interface

java.lang.Object
  extended by net.sourceforge.cvsgrab.CvsWebInterface
      extended by net.sourceforge.cvsgrab.web.ViewCvsInterface
          extended by net.sourceforge.cvsgrab.web.FishEye1_0Interface

public class FishEye1_0Interface
extends ViewCvsInterface

Support for FishEye 0.8, 0.9 and maybe 1.0 interfaces to a cvs repository

Author:
lclaude

Field Summary
 
Fields inherited from class net.sourceforge.cvsgrab.CvsWebInterface
DETECTED_WEB_INTERFACE
 
Constructor Summary
FishEye1_0Interface(CVSGrab grabber)
           
 
Method Summary
protected  void adjustFile(RemoteFile file, org.apache.commons.jxpath.JXPathContext nodeContext)
           
 void detect(Document htmlPage)
          Detects if the web page is compatible with this web interface, and if yes initialize it.
 String[] getDirectories(Document htmlPage)
          
 String getDirectoryUrl(String rootUrl, String directoryName)
          
 String getDownloadUrl(RemoteFile file)
          
protected  String getVersionMarker()
          
 Properties guessWebProperties(String url)
          Guess the web properties frmo the full url
protected  String quote(String original)
          Python-style of URIUtil.encodePath
 
Methods inherited from class net.sourceforge.cvsgrab.web.ViewCvsInterface
getBaseUrl, getCheckoutPath, getCvsrootParam, getDirectoriesXpath, getDirectoryXpath, getFileNameXpath, getFiles, getFilesXpath, getFileVersionXpath, getId, getProjectRoot, getTagParam, getType, getWebInterfaceType, init, setCheckoutPath, setCvsrootParam, setDirectoriesXpath, setDirectoryXpath, setFileNameXpath, setFilesXpath, setFileVersionXpath, setTagParam, setType, setWebInterfaceType
 
Methods inherited from class net.sourceforge.cvsgrab.CvsWebInterface
findInterface, getAltBaseUrl, 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
 

Constructor Detail

FishEye1_0Interface

public FishEye1_0Interface(CVSGrab grabber)
Method Detail

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.

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

getDirectories

public String[] getDirectories(Document htmlPage)

Overrides:
getDirectories in class ViewCvsInterface
Returns:

getDownloadUrl

public String getDownloadUrl(RemoteFile file)

Overrides:
getDownloadUrl in class ViewCvsInterface
Returns:

guessWebProperties

public Properties guessWebProperties(String url)
Description copied from class: CvsWebInterface
Guess the web properties frmo the full url

Overrides:
guessWebProperties in class ViewCvsInterface
Parameters:
url - the full url
Returns:
a list of Properties guessed from the full url, or an empty property list if no match was possible

quote

protected String quote(String original)
                throws org.apache.commons.httpclient.URIException
Python-style of URIUtil.encodePath

Overrides:
quote in class ViewCvsInterface
Parameters:
original - The string to quote
Returns:
the quoted string
Throws:
org.apache.commons.httpclient.URIException

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.