org.netbeans.lib.cvsclient.request
Class ArgumentRequest

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

public class ArgumentRequest
extends Request

The Argument request. The server saves the specified argument for use in a future argument-using command

Author:
Robert Greig

Constructor Summary
ArgumentRequest(String argument)
          Create a new request
ArgumentRequest(String argument, boolean escapeLeadingDash)
          Create a new request
 
Method Summary
 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

ArgumentRequest

public ArgumentRequest(String argument)
Create a new request

Parameters:
theArgument - the argument to use

ArgumentRequest

public ArgumentRequest(String argument,
                       boolean escapeLeadingDash)
Create a new request

Parameters:
theArgument - the argument to use
escapeLeadingDash - true to escape leasding dash in the argument with another "--" Argument request, false otherwise
Method Detail

getRequestString

public String getRequestString()
Get the request String that will be passed to the server

Specified by:
getRequestString in class Request
Returns:
the request String

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


Copyright © 2011. All Rights Reserved.