|
|||||||||
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.CVSResponse
The base class for all responses from the server. Sub-classes usually override the processXXXXResponse methods to extract data from a response they are interested in.
Inner Class Summary | |
static class |
CVSResponse.Message
Defines a message that was received from the server that should be displayed to the user. |
Constructor Summary | |
CVSResponse(CVSRequest request)
|
|
CVSResponse(CVSRequest request,
boolean bCreateCVSClientFiles)
Creates a new CVSResponse. |
Method Summary | |
protected void |
checkedIn(FileEntry entry)
Called when a Checked-in response is received for the supplied file entry. |
protected void |
endOfResponse()
|
CVSClient |
getClient()
Gets the client object that is used to communicate with the server. |
protected java.io.File |
getCurrentDirectory()
Gets the current directory for this communications object. |
java.lang.String |
getErrorCode()
Gets the error code from an "error" resonse from the server. |
java.lang.String |
getErrorMessage()
Gets the error message from an "error" resonse from the server. |
protected java.io.File |
getFileFromPathNameResponse(java.lang.String s)
Gets the local file from the supplied path name that is returned with most server responses. |
CVSResponse.Message |
getMessage(int nIndex)
|
int |
getMessageCount()
Gets the number of messages that were received from the server that should be displayed to the user. |
CVSRequest |
getRequest()
Gets the request that this response is for. |
boolean |
hadError()
Checks if this reply had an error (i.e. |
protected void |
processCheckedInResponse(java.lang.String s)
|
protected void |
processChecksumResponse(java.lang.String s)
|
protected void |
processClearStaticDirectoryResponse(java.lang.String s)
|
protected void |
processClearStickyResponse(java.lang.String s)
|
protected void |
processCopyFileResponse(java.lang.String s)
|
protected void |
processCreatedResponse(java.lang.String s)
|
protected void |
processErrorResponse(java.lang.String s)
|
protected void |
processMergedResponse(java.lang.String s)
|
protected void |
processModeResponse(java.lang.String s)
|
protected void |
processModTimeResponse(java.lang.String s)
|
protected void |
processModuleExpansionResponse(java.lang.String s)
|
protected void |
processNewEntryResponse(java.lang.String s)
|
protected void |
processNotifiedResponse(java.lang.String s)
|
protected void |
processOkResponse(java.lang.String s)
|
protected void |
processPatchedResponse(java.lang.String s)
|
protected void |
processRcsDiffResponse(java.lang.String s)
|
protected void |
processRemovedResponse(java.lang.String s)
|
protected void |
processRemoveEntryResponse(java.lang.String s)
|
protected void |
processSetCheckinProgResponse(java.lang.String s)
|
protected void |
processSetStaticDirectoryResponse(java.lang.String s)
|
protected void |
processSetStickyResponse(java.lang.String s)
|
protected void |
processSetUpdateProgResponse(java.lang.String s)
|
protected void |
processStderrMessageResponse(java.lang.String s)
|
protected void |
processStdoutBinaryMessageResponse(java.lang.String s)
|
protected void |
processStdoutMessageResponse(java.lang.String s)
|
protected void |
processTemplateResponse(java.lang.String s)
|
protected void |
processUnrecognizedResponse(java.lang.String s)
|
protected void |
processUpdatedResponse(java.lang.String s)
|
protected void |
processUpdateExistingResponse(java.lang.String s)
|
protected void |
processValidRequestsResponse(java.lang.String s)
|
protected void |
processWrapperRcsOptionResponse(java.lang.String s)
|
protected void |
receiveResponse()
Receives the entire response from the server. |
protected FileEntry |
updateFileEntryDetails(java.io.File file,
java.lang.String sEntry)
Updates the file entry specified by the supplied file using the entry details from a server response. |
protected void |
updateFileFromResponse(java.lang.String s)
Updates a file from a server response. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CVSResponse(CVSRequest request, boolean bCreateCVSClientFiles)
request
- the request that this response will be tobCreateCVSClientFiles
- if true
then the client files in the CVS directories
will be created/updated as responses are received from the server. If false
then the files won't be created or modified.public CVSResponse(CVSRequest request)
Method Detail |
public CVSClient getClient()
CVSCommunicationsObject
getClient
in class CVSCommunicationsObject
protected java.io.File getCurrentDirectory()
CVSCommunicationsObject
getCurrentDirectory
in class CVSCommunicationsObject
public CVSRequest getRequest()
public boolean hadError()
public java.lang.String getErrorCode()
public java.lang.String getErrorMessage()
public int getMessageCount()
public CVSResponse.Message getMessage(int nIndex)
protected void receiveResponse() throws java.io.IOException, CVSException
protected java.io.File getFileFromPathNameResponse(java.lang.String s) throws CVSException, java.io.IOException
s
- the first line of the path responseprotected FileEntry updateFileEntryDetails(java.io.File file, java.lang.String sEntry) throws CVSException, java.io.IOException
protected void processErrorResponse(java.lang.String s)
protected void processOkResponse(java.lang.String s)
protected void processValidRequestsResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processCheckedInResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void checkedIn(FileEntry entry)
protected void processNewEntryResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void updateFileFromResponse(java.lang.String s) throws java.io.IOException, CVSException
s
- the first line of the server response for the path name of the file to be updated.protected void processUpdatedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processCreatedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processUpdateExistingResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processMergedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processRcsDiffResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processPatchedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processModeResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processModTimeResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processChecksumResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processCopyFileResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processRemovedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processRemoveEntryResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processSetStaticDirectoryResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processClearStaticDirectoryResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processSetStickyResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processClearStickyResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processTemplateResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processSetCheckinProgResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processSetUpdateProgResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processNotifiedResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processModuleExpansionResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processWrapperRcsOptionResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processStdoutMessageResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processStdoutBinaryMessageResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processStderrMessageResponse(java.lang.String s) throws java.io.IOException, CVSException
protected void processUnrecognizedResponse(java.lang.String s)
protected void endOfResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |