|
|||||||||
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
The base class for all requests to a CVS server. A request is perofrmed by a CVSClient object using the CVSClient.performRequest method. Sub classes of this class can use the helper methods sendXXX to send specific commands and data to the server. These methods forward the request to the client to actually send it over the current server connection.
Constructor Summary | |
protected |
CVSRequest()
|
Method Summary | |
protected boolean |
canSendIsModified()
Determines if this request can send Is-modified commands to the server instead of Modified commands. |
protected CVSResponse |
createResponse()
Creates the response object used to receive the response for this request from the server. |
protected void |
fireStatusUpdate(java.lang.String sText)
|
CVSClient |
getClient()
Gets the client that this request is running on. |
abstract java.io.File |
getCurrentDirectory()
Gets the directory that all file paths are specified relative to when executing this request. |
java.lang.String |
getDescription()
|
java.lang.Exception |
getException()
Gets the exception that occurred when this request was executed. |
abstract RepositoryLocation |
getRepositoryLocation()
Gets the repository location that the client must connect to in order to perform this request. |
protected CVSRequest |
getRequest()
Required for the implementation of CVSCommunicationsObject. |
protected java.lang.String |
getResourceString(java.lang.String sSubKey)
|
CVSResponse |
getResponse()
Gets the response from the server for this request. |
protected boolean |
getSendQuestionableCommands()
|
boolean |
hasCompletedSuccessfully()
Checks if this request has completed successfully or not. |
protected CVSResponse |
performRequest()
This is the main method for the request and is responsible for sending this request to the server. |
protected void |
sendRequest()
Sends this request to the server. |
protected boolean |
validateRequest()
Validates this request. |
void |
waitForSuccessfulCompletion()
Causes the calling thread to wait until this request has completed successfully. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CVSRequest()
Method Detail |
protected boolean canSendIsModified()
protected final CVSRequest getRequest()
public final CVSClient getClient()
getClient
in class CVSCommunicationsObject
public abstract RepositoryLocation getRepositoryLocation()
public abstract java.io.File getCurrentDirectory()
getCurrentDirectory
in class CVSCommunicationsObject
public java.lang.String getDescription()
protected boolean getSendQuestionableCommands()
protected boolean validateRequest() throws CVSException, java.io.IOException
public boolean hasCompletedSuccessfully()
public void waitForSuccessfulCompletion()
public CVSResponse getResponse()
public java.lang.Exception getException()
protected CVSResponse performRequest() throws java.io.IOException, CVSException
protected void sendRequest() throws java.io.IOException, CVSException
protected CVSResponse createResponse()
protected java.lang.String getResourceString(java.lang.String sSubKey)
protected void fireStatusUpdate(java.lang.String sText)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |