|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cvsgrab.CvsWebInterface net.sourceforge.cvsgrab.web.ViewCvsInterface
public abstract class ViewCvsInterface
Support for ViewCvs-like interfaces to a cvs repository
Field Summary |
---|
Fields inherited from class net.sourceforge.cvsgrab.CvsWebInterface |
---|
DETECTED_WEB_INTERFACE |
Constructor Summary | |
---|---|
ViewCvsInterface(CVSGrab grabber)
Constructor for ViewCvsInterface |
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 |
getBaseUrl()
|
protected String |
getCheckoutPath()
|
String |
getCvsrootParam()
|
String[] |
getDirectories(Document htmlPage)
|
String |
getDirectoriesXpath()
|
String |
getDirectoryUrl(String rootUrl,
String directoryName)
|
String |
getDirectoryXpath()
|
String |
getDownloadUrl(RemoteFile file)
|
String |
getFileNameXpath()
|
RemoteFile[] |
getFiles(Document htmlPage)
|
String |
getFilesXpath()
|
String |
getFileVersionXpath()
|
String |
getId()
|
protected String |
getProjectRoot()
|
String |
getTagParam()
|
String |
getType()
|
protected abstract String |
getVersionMarker()
|
String |
getWebInterfaceType()
|
Properties |
guessWebProperties(String url)
Guess the web properties frmo the full url |
void |
init()
Initialize the web interface |
protected String |
quote(String original)
Python-style of URIUtil.encodePath |
protected void |
setCheckoutPath(String checkoutPath)
|
void |
setCvsrootParam(String cvsrootParam)
|
void |
setDirectoriesXpath(String directoriesXpath)
|
void |
setDirectoryXpath(String directoryXpath)
|
void |
setFileNameXpath(String fileNameXpath)
|
void |
setFilesXpath(String filesXpath)
|
void |
setFileVersionXpath(String fileVersionXpath)
|
void |
setTagParam(String param)
|
protected void |
setType(String type)
|
protected void |
setWebInterfaceType(String webInterfaceType)
|
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 |
---|
public ViewCvsInterface(CVSGrab grabber)
Method Detail |
---|
public void init() throws Exception
init
in class CvsWebInterface
Exception
- if initialisation failspublic void detect(Document htmlPage) throws MarkerNotFoundException, InvalidVersionException
detect
in class CvsWebInterface
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 getId()
getId
in class CvsWebInterface
public String getType()
getType
in class CvsWebInterface
public String getBaseUrl()
getBaseUrl
in class CvsWebInterface
public String getDirectoryUrl(String rootUrl, String directoryName)
getDirectoryUrl
in class CvsWebInterface
rootUrl
- directoryName
-
public RemoteFile[] getFiles(Document htmlPage)
getFiles
in class CvsWebInterface
public String[] getDirectories(Document htmlPage)
getDirectories
in class CvsWebInterface
public String getDownloadUrl(RemoteFile file)
getDownloadUrl
in class CvsWebInterface
public Properties guessWebProperties(String url)
CvsWebInterface
guessWebProperties
in class CvsWebInterface
url
- the full url
public String getFilesXpath()
public String getFileNameXpath()
public String getFileVersionXpath()
public String getDirectoriesXpath()
public String getDirectoryXpath()
protected String getCheckoutPath()
protected void setCheckoutPath(String checkoutPath)
public void setDirectoryXpath(String directoryXpath)
public void setDirectoriesXpath(String directoriesXpath)
public void setFileVersionXpath(String fileVersionXpath)
public void setFileNameXpath(String fileNameXpath)
public void setFilesXpath(String filesXpath)
public String getTagParam()
public void setTagParam(String param)
public String getWebInterfaceType()
protected void setWebInterfaceType(String webInterfaceType)
public String getCvsrootParam()
public void setCvsrootParam(String cvsrootParam)
protected void setType(String type)
type
- protected abstract String getVersionMarker()
protected void adjustFile(RemoteFile file, org.apache.commons.jxpath.JXPathContext nodeContext)
protected String quote(String original) throws org.apache.commons.httpclient.URIException
original
- The string to quote
org.apache.commons.httpclient.URIException
protected String getProjectRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |