org.netbeans.lib.cvsclient.request
Class ModifiedRequest

java.lang.Object
  extended by org.netbeans.lib.cvsclient.request.Request
      extended by org.netbeans.lib.cvsclient.request.ModifiedRequest

public class ModifiedRequest
extends Request

Sends the server a copy of a locally modified file.


Constructor Summary
ModifiedRequest(java.io.File file, boolean isBinary)
          Construct a new modified request.
 
Method Summary
 FileDetails getFileForTransmission()
          If a file transmission is required, get the file object representing the file to transmit after the request string.
 java.lang.String getRequestString()
          Get the request String that will be passed to the server
 boolean isResponseExpected()
          Is a response expected from the server?
 
Methods inherited from class org.netbeans.lib.cvsclient.request.Request
modifiesInputStream, modifyInputStream, modifyOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedRequest

public ModifiedRequest(java.io.File file,
                       boolean isBinary)
Construct a new modified request.

Parameters:
theFile - the file that has been modified
Method Detail

getRequestString

public java.lang.String getRequestString()
                                  throws UnconfiguredRequestException
Get the request String that will be passed to the server

Specified by:
getRequestString in class Request
Returns:
the request String
Throws:
UnconfiguredRequestException - if the request has not been properly configured

isResponseExpected

public boolean isResponseExpected()
Is a response expected from the server?

Specified by:
isResponseExpected in class Request
Returns:
true if a response is expected, false if no response if expected

getFileForTransmission

public FileDetails getFileForTransmission()
If a file transmission is required, get the file object representing the file to transmit after the request string. The default implementation returns null, indicating no file is to be transmitted

Overrides:
getFileForTransmission in class Request
Returns:
the file details object, if one should be transmitted, or null if no file object is to be transmitted.

 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.