|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResponseServices
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 If the file does not exist, the operation does nothing. |
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 |
---|
void setNextFileDate(java.util.Date modifiedDate)
modifiedDate
- the date the file should be marked as modifiedjava.util.Date getNextFileDate()
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 filevoid 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 filesvoid 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 detailsvoid 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 filevoid 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 filevoid removeLocalFile(java.lang.String localPath, java.lang.String repositoryFileName) throws java.io.IOException
java.io.IOException
- if an IO error occurs while removing the filevoid 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 fileEventManager getEventManager()
FileHandler getUncompressedFileHandler()
FileHandler getGzipFileHandler()
void dontUseGzipFileHandler()
void setValidRequests(java.lang.String requests)
requests
- A List of requests that is valid for this CVS server
separated by spaces.void addWrapper(StringPattern pattern, KeywordSubstitutionOptions option)
pattern
- A StringPattern indicating the pattern for which the
wrapper appliesoption
- A KeywordSubstituionOption corresponding to the settingGlobalOptions getGlobalOptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |