org.netbeans.lib.cvsclient.request
Class EntryRequest

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

public class EntryRequest
extends Request

Sends an entry to the server, to tell the server which version of a file is on the local machine. The filename is relative to the most recent Directory request. Note that if an

Entry
request is sent without
Modified
,
Is-Modified
or
Unchanged
it means that the file is lost. Also note that if
Modified
,
Is-Modified
or Unchanged is sent with
Entry
 
then Entry must be sent first.

See Also:
DirectoryRequest, ModifiedRequest, ModifiedRequest, UnchangedRequest

Constructor Summary
EntryRequest(Entry theEntry)
          Create an EntryRequest
 
Method Summary
 Entry getEntry()
           
 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
getFileForTransmission, modifiesInputStream, modifyInputStream, modifyOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryRequest

public EntryRequest(Entry theEntry)
Create an EntryRequest

Parameters:
theEntry - the Entry to send
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

getEntry

public Entry getEntry()

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.