|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Services that are provided to response handlers.
| Method Summary | |
void |
addWrapper(StringPattern pattern,
KeywordSubstitutionOptions option)
This method is called by WrapperSendResponse for each wrapper setting sent back by the CVS server |
java.lang.String |
convertPathname(java.lang.String localDirectory,
java.lang.String repository)
Convert a pathname in the CVS sense (see 5.10 in the protocol document) into a local pathname for the file |
void |
dontUseGzipFileHandler()
ReSet the filehandler for Gzip compressed data. |
EventManager |
getEventManager()
Get the CVS event manager. |
GlobalOptions |
getGlobalOptions()
Get the global options that are set to this client. |
FileHandler |
getGzipFileHandler()
Obtain the file handler for Gzip compressed data. |
java.util.Date |
getNextFileDate()
Get the modified date of the next file to be written. |
FileHandler |
getUncompressedFileHandler()
Obtain from the underlying implementation the file handler for handling uncompressed data. |
void |
removeEntry(java.io.File f)
Remove the Entry for the specified file |
void |
removeLocalFile(java.lang.String pathname)
Remove the specified file from the local disk |
void |
removeLocalFile(java.lang.String localPath,
java.lang.String repositoryFileName)
Remove the specified file from the local disk. |
void |
renameLocalFile(java.lang.String pathname,
java.lang.String newName)
Rename the local file |
void |
setEntry(java.io.File f,
Entry e)
Set the Entry for the specified file |
void |
setNextFileDate(java.util.Date modifiedDate)
Set the modified date of the next file to be written. |
void |
setValidRequests(java.lang.String requests)
This method is called when a response for the ValidRequests request is received. |
void |
updateAdminData(java.lang.String localDirectory,
java.lang.String repositoryPath,
Entry entry)
Create or update the administration files for a particular file This will create the CVS directory if necessary, and the Root and Repository files if necessary. |
| Method Detail |
public void setNextFileDate(java.util.Date modifiedDate)
modifiedDate - the date the file should be marked as modifiedpublic java.util.Date getNextFileDate()
public java.lang.String convertPathname(java.lang.String localDirectory,
java.lang.String repository)
localDirectory - the name of the local directory, relative to the
directory in which the command was givenrepository - the full repository name for the file
public void updateAdminData(java.lang.String localDirectory,
java.lang.String repositoryPath,
Entry entry)
throws java.io.IOException
localDirectory - the local directory, relative to the directory
in which the command was given, where the file in question livesentry - the entry object for that file
java.io.IOException - if there is an error writing the files
public void setEntry(java.io.File f,
Entry e)
throws java.io.IOException
f - the filee - the new entry
java.io.IOException - if an error occurs writing the details
public void removeEntry(java.io.File f)
throws java.io.IOException
f - the file whose entry is to be removed
java.io.IOException - if an error occurs writing the Entries file
public void removeLocalFile(java.lang.String pathname)
throws java.io.IOException
pathname - the full path to the file to remove
java.io.IOException - if an IO error occurs while removing the file
public void removeLocalFile(java.lang.String localPath,
java.lang.String repositoryFileName)
throws java.io.IOException
java.io.IOException - if an IO error occurs while removing the file
public void renameLocalFile(java.lang.String pathname,
java.lang.String newName)
throws java.io.IOException
pathname - the full path to the file to renamenewName - the new name of the file (not the full path)
java.io.IOException - if an IO error occurs while renaming the filepublic EventManager getEventManager()
public FileHandler getUncompressedFileHandler()
public FileHandler getGzipFileHandler()
public void dontUseGzipFileHandler()
public void setValidRequests(java.lang.String requests)
requests - A List of requests that is valid for this CVS server
separated by spaces.
public void addWrapper(StringPattern pattern,
KeywordSubstitutionOptions option)
pattern - A StringPattern indicating the pattern for which the
wrapper appliesoption - A KeywordSubstituionOption corresponding to the settingpublic GlobalOptions getGlobalOptions()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||