|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--allensoft.javacvs.client.CVSCommunicationsObject | +--allensoft.javacvs.client.CVSRequest | +--allensoft.javacvs.client.MultiFileCVSRequest | +--allensoft.javacvs.client.AddRequest
Request object that adds files/directories to a repository.
Constructor Summary | |
AddRequest()
Creates a new AddRequest using the default options. |
|
AddRequest(AddOptions options)
Creates a new AddRequest using the supplied options. |
|
AddRequest(java.io.File file)
Creates a new AddRequest that adds the supplied file to the repository using the default options. |
|
AddRequest(java.io.File[] files)
Creates a new AddRequest that adds the supplied files to the repository using the default options. |
|
AddRequest(java.io.File[] files,
AddOptions options)
Creates a new AddRequest that adds the supplied files to the repository using the supplied options. |
|
AddRequest(java.io.File file,
AddOptions options)
Creates a new AddRequest that adds the supplied file to the repository using the supplied options. |
Method Summary | |
KeywordSubstitutionModeClassifier |
getKeywordSubstitutionModeClassifier()
Gets the KeywordSubstitutionModeClassifier used to determine the keyword substitution mode for files added. |
AddOptions |
getOptions()
Gets the options used for this add request. |
protected boolean |
getSendQuestionableCommands()
Overridden so we don't send questionable commands to the server for files not added. |
protected java.io.File |
getWorkingDirectoryForFile(java.io.File file)
Gets the directory that corresponds to the working directory for files added to this request. |
protected CVSResponse |
performRequest()
This is the main method for the request and is responsible for sending this request to the server. |
void |
setKeywordSubstitutionModeClassifier(KeywordSubstitutionModeClassifier classifier)
Sets the KeywordSubstitutionModeClassifier used to determine the keyword substitution mode for files added. |
void |
setOptions(AddOptions options)
Sets the options used for this add request. |
protected void |
validateFile(java.io.File file)
Overridden to ensure the file is not already under CVS control (by checking if an entry exists for it in an Entries file). |
Methods inherited from class allensoft.javacvs.client.MultiFileCVSRequest |
addFile, getCurrentDirectory, getFile, getFileCount, getRepositoryLocation |
Methods inherited from class allensoft.javacvs.client.CVSRequest |
canSendIsModified, createResponse, fireStatusUpdate, getClient, getDescription, getException, getRequest, getResourceString, getResponse, hasCompletedSuccessfully, sendRequest, validateRequest, waitForSuccessfulCompletion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AddRequest(java.io.File[] files, AddOptions options) throws java.io.IOException, CVSException
public AddRequest(java.io.File file, AddOptions options) throws java.io.IOException, CVSException
public AddRequest(AddOptions options)
addFile
method.public AddRequest(java.io.File[] files) throws java.io.IOException, CVSException
public AddRequest(java.io.File file) throws java.io.IOException, CVSException
public AddRequest()
addFile
method.Method Detail |
public AddOptions getOptions()
public void setOptions(AddOptions options)
public KeywordSubstitutionModeClassifier getKeywordSubstitutionModeClassifier()
public void setKeywordSubstitutionModeClassifier(KeywordSubstitutionModeClassifier classifier)
protected boolean getSendQuestionableCommands()
getSendQuestionableCommands
in class CVSRequest
protected void validateFile(java.io.File file) throws java.io.IOException, CVSException
validateFile
in class MultiFileCVSRequest
protected java.io.File getWorkingDirectoryForFile(java.io.File file)
getWorkingDirectoryForFile
in class MultiFileCVSRequest
protected CVSResponse performRequest() throws java.io.IOException, CVSException
CVSRequest
performRequest
in class CVSRequest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |