allensoft.javacvs.client
Class ImportRequest

java.lang.Object
  |
  +--allensoft.javacvs.client.CVSCommunicationsObject
        |
        +--allensoft.javacvs.client.CVSRequest
              |
              +--allensoft.javacvs.client.ImportRequest

public class ImportRequest
extends CVSRequest

Request object that adds files/directories to a repository.


Constructor Summary
ImportRequest(java.io.File directory, RepositoryLocation repositoryLocation, java.lang.String sRepositoryDirectory, java.lang.String sVendorTag, java.lang.String[] releaseTags, ImportOptions options)
          Creates a new AddRequest that adds the supplied files to the repository using the supplied options.
 
Method Summary
protected  CVSResponse createResponse()
          Creates the response object used to receive the response for this request from the server.
 java.io.File getCurrentDirectory()
          Gets the directory that all file paths are specified relative to when executing this request.
 java.io.FileFilter getFileFilter()
           
 KeywordSubstitutionModeClassifier getKeywordSubstitutionModeClassifier()
           
 ImportOptions getOptions()
           
 RepositoryLocation getRepositoryLocation()
          Gets the repository location that the client must connect to in order to perform this request.
protected  void sendRequest()
          Sends this request to the server.
 void setFileFilter(java.io.FileFilter filter)
           
 void setKeywordSubstitutionModeClassifier(KeywordSubstitutionModeClassifier classifier)
           
 void setOptions(ImportOptions options)
           
protected  boolean validateRequest()
          Validates this request.
 
Methods inherited from class allensoft.javacvs.client.CVSRequest
canSendIsModified, fireStatusUpdate, getClient, getDescription, getException, getRequest, getResourceString, getResponse, getSendQuestionableCommands, hasCompletedSuccessfully, performRequest, waitForSuccessfulCompletion
 
Methods inherited from class allensoft.javacvs.client.CVSCommunicationsObject
expandModules, flush, getFileFromRelativePath, getRelativePath, getRelativePath, getRelativePath, getWrapperRCSOptions, performSubRequest, receiveFile, receiveFile, receiveLine, sendArgument, sendArgument, sendArgument, sendArgument, sendCheckinProg, sendCurrentDirectory, sendDateOption, sendDirectory, sendDirectory, sendEntry, sendFileDetails, sendFileDetails, sendFileDetails, sendGlobalOption, sendKopt, sendLine, sendModified, sendOptions, sendStaticDirectory, sendSticky, sendText, sendUnchanged, sendUpdateProg, sendWorkingDirectoryDetails, sendWorkingDirectoryDetails, sendWorkingDirectoryDetails, validRequests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportRequest

public ImportRequest(java.io.File directory,
                     RepositoryLocation repositoryLocation,
                     java.lang.String sRepositoryDirectory,
                     java.lang.String sVendorTag,
                     java.lang.String[] releaseTags,
                     ImportOptions options)
Creates a new AddRequest that adds the supplied files to the repository using the supplied options.
Parameters:
directory - the directory to import
repositoryLocation - the repository location to import to
sRepositoryDirectory - the path to the directory in the repository
sVendorTag - the vendor tag to use
sReleaseTag - the release tag to use
options - the options to use
Method Detail

getRepositoryLocation

public RepositoryLocation getRepositoryLocation()
Description copied from class: CVSRequest
Gets the repository location that the client must connect to in order to perform this request.
Overrides:
getRepositoryLocation in class CVSRequest

getCurrentDirectory

public java.io.File getCurrentDirectory()
Description copied from class: CVSRequest
Gets the directory that all file paths are specified relative to when executing this request.
Overrides:
getCurrentDirectory in class CVSRequest

getOptions

public ImportOptions getOptions()

setOptions

public void setOptions(ImportOptions options)

getFileFilter

public java.io.FileFilter getFileFilter()

setFileFilter

public void setFileFilter(java.io.FileFilter filter)

getKeywordSubstitutionModeClassifier

public KeywordSubstitutionModeClassifier getKeywordSubstitutionModeClassifier()

setKeywordSubstitutionModeClassifier

public void setKeywordSubstitutionModeClassifier(KeywordSubstitutionModeClassifier classifier)

validateRequest

protected boolean validateRequest()
                           throws CVSException,
                                  java.io.IOException
Description copied from class: CVSRequest
Validates this request. This is called before sending the request or attempting to make a connection to the server. It can be overridden to validate the settings in this request to ensure it is valid before attempting to connect and send this reqesuest. If this request is invalid then a CVSException is thrown describing why the request is invalid.
Overrides:
validateRequest in class CVSRequest
Following copied from class: allensoft.javacvs.client.CVSRequest
Returns:
true if the request needs to be sent (i.e. there is something to be done or false if the request does not need to be sent.

sendRequest

protected void sendRequest()
                    throws java.io.IOException,
                           CVSException
Description copied from class: CVSRequest
Sends this request to the server.
Overrides:
sendRequest in class CVSRequest

createResponse

protected CVSResponse createResponse()
Description copied from class: CVSRequest
Creates the response object used to receive the response for this request from the server.
Overrides:
createResponse in class CVSRequest
Following copied from class: allensoft.javacvs.client.CVSRequest
Returns:
the response object for this request or null if no response is expected.