|
||||||||||
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 |
String |
convertPathname(String localDirectory,
String repository)
Convert a pathname in the CVS sense (see 5.10 in the protocol document) into a local pathname for the file |
void |
copyLocalFile(String pathname,
String newname)
Copy the local 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. |
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(File f)
Remove the Entry for the specified file |
void |
removeLocalFile(String pathname)
Remove the specified file from the local disk If the file does not exist, the operation does nothing. |
void |
removeLocalFile(String localPath,
String repositoryFileName)
Remove the specified file from the local disk. |
void |
setEntry(File f,
Entry e)
Set the Entry for the specified file |
void |
setNextFileDate(Date modifiedDate)
Set the modified date of the next file to be written. |
void |
setValidRequests(String requests)
This method is called when a response for the ValidRequests request is received. |
void |
updateAdminData(String localDirectory,
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(Date modifiedDate)
modifiedDate
- the date the file should be marked as modifiedDate getNextFileDate()
String convertPathname(String localDirectory, 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(String localDirectory, String repositoryPath, Entry entry) throws 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
IOException
- if there is an error writing the filesvoid setEntry(File f, Entry e) throws IOException
f
- the filee
- the new entry
IOException
- if an error occurs writing the detailsvoid removeEntry(File f) throws IOException
f
- the file whose entry is to be removed
IOException
- if an error occurs writing the Entries filevoid removeLocalFile(String pathname) throws IOException
pathname
- the full path to the file to remove
IOException
- if an IO error occurs while removing the filevoid removeLocalFile(String localPath, String repositoryFileName) throws IOException
IOException
- if an IO error occurs while removing the filevoid copyLocalFile(String pathname, String newname) throws IOException
pathname
- the full path to the file to coypnewname
- the new name of the file (not the full path)
IOException
- if an IO error occurs while copying the fileEventManager getEventManager()
FileHandler getUncompressedFileHandler()
FileHandler getGzipFileHandler()
void dontUseGzipFileHandler()
void setValidRequests(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 |