|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cvsgrab.CvsWebInterface
net.sourceforge.cvsgrab.web.ViewCvsInterface
net.sourceforge.cvsgrab.web.Chora2_0Interface
public class Chora2_0Interface
Support for Chora 2.0 interfaces to a cvs repository
Field Summary |
---|
Fields inherited from class net.sourceforge.cvsgrab.CvsWebInterface |
---|
DETECTED_WEB_INTERFACE |
Constructor Summary | |
---|---|
Chora2_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. |
protected String |
getBrowsePath()
|
String[] |
getDirectories(Document htmlPage)
|
String |
getDirectoryUrl(String rootUrl,
String directoryName)
|
String |
getDownloadUrl(RemoteFile file)
|
RemoteFile[] |
getFiles(Document htmlPage)
|
protected String |
getVersionMarker()
|
Properties |
guessWebProperties(String url)
Guess the web properties frmo the full url |
boolean |
presetMatch(String rootUrl,
String packagePath)
Returns true if there is a rule that matches this web interface to the given url |
protected String |
quote(String original)
Python-style of URIUtil.encodePath |
protected void |
setBrowsePath(String browsePath)
|
Methods inherited from class net.sourceforge.cvsgrab.web.ViewCvsInterface |
---|
getBaseUrl, getCheckoutPath, getCvsrootParam, getDirectoriesXpath, getDirectoryXpath, getFileNameXpath, 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, registerDocument, setQueryParams, setVersionTag, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Chora2_0Interface(CVSGrab grabber)
Method Detail |
---|
protected String getBrowsePath()
protected void setBrowsePath(String browsePath)
public void detect(Document htmlPage) throws MarkerNotFoundException, InvalidVersionException
detect
in class ViewCvsInterface
htmlPage
- The web page
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.public String getDirectoryUrl(String rootUrl, String directoryName)
getDirectoryUrl
in class ViewCvsInterface
public String[] getDirectories(Document htmlPage)
getDirectories
in class ViewCvsInterface
public RemoteFile[] getFiles(Document htmlPage)
getFiles
in class ViewCvsInterface
public String getDownloadUrl(RemoteFile file)
getDownloadUrl
in class ViewCvsInterface
protected String quote(String original) throws org.apache.commons.httpclient.URIException
quote
in class ViewCvsInterface
original
- The string to quote
org.apache.commons.httpclient.URIException
protected String getVersionMarker()
getVersionMarker
in class ViewCvsInterface
protected void adjustFile(RemoteFile file, org.apache.commons.jxpath.JXPathContext nodeContext)
adjustFile
in class ViewCvsInterface
public boolean presetMatch(String rootUrl, String packagePath)
CvsWebInterface
presetMatch
in class CvsWebInterface
rootUrl
- The root urlpackagePath
- The package pathpublic Properties guessWebProperties(String url)
CvsWebInterface
guessWebProperties
in class ViewCvsInterface
url
- the full url
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |