net.sourceforge.cvsgrab
Class RemoteRepository

java.lang.Object
  extended by net.sourceforge.cvsgrab.RemoteRepository

public class RemoteRepository
extends Object

Represents the remote repository available via the ViewCVS web interface.

Version:
1.0
Author:
Ludovic Claude
Created:
April 16, 2002

Constructor Summary
RemoteRepository(String rootUrl, LocalRepository localRepository)
          Constructor for the RemoteRepository object
 
Method Summary
 String getDirectoryUrl(String directoryName)
           
 String getDownloadUrl(RemoteFile file)
           
 LocalRepository getLocalRepository()
          Gets the local repository attribute
 RemoteDirectory getRemoteDirectory(String dirPath)
          Gets the remote directory attribute
 String getRootUrl()
          Gets the root url attribute
 CvsWebInterface getWebInterface()
           
 boolean hasDirectoryToProcess()
           
 RemoteDirectory nextDirectoryToProcess()
           
 void registerDirectoryToProcess(RemoteDirectory remoteDir)
          Registers a directory to process
 void setWebInterface(CvsWebInterface webInterface)
          Sets the web interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteRepository

public RemoteRepository(String rootUrl,
                        LocalRepository localRepository)
Constructor for the RemoteRepository object

Parameters:
rootUrl - Description of the Parameter
localRepository - Description of the Parameter
Method Detail

getRootUrl

public String getRootUrl()
Gets the root url attribute

Returns:
The rootUrl value

getLocalRepository

public LocalRepository getLocalRepository()
Gets the local repository attribute

Returns:
The localRepository value

getRemoteDirectory

public RemoteDirectory getRemoteDirectory(String dirPath)
Gets the remote directory attribute

Parameters:
dirPath - The directory path, relative to the root url
Returns:
The remoteDirectory value

getWebInterface

public CvsWebInterface getWebInterface()
Returns:
the web interface

setWebInterface

public void setWebInterface(CvsWebInterface webInterface)
Sets the web interface

Parameters:
webInterface - the web interface

registerDirectoryToProcess

public void registerDirectoryToProcess(RemoteDirectory remoteDir)
Registers a directory to process

Parameters:
remoteDir - The remote directory to register

hasDirectoryToProcess

public boolean hasDirectoryToProcess()
Returns:
true if there are remote directories that need to be processed

nextDirectoryToProcess

public RemoteDirectory nextDirectoryToProcess()
Returns:
the next directory to process, and remove it from the list of directories to process

getDirectoryUrl

public String getDirectoryUrl(String directoryName)
Parameters:
directoryName - The name of the directory
Returns:
The full url to use to access the contents of the directory

getDownloadUrl

public String getDownloadUrl(RemoteFile file)
Parameters:
file -
Returns:


Copyright © 2002-2005 Ludovic Claude. All Rights Reserved.