public class ArgumentRequest extends Request
Constructor and Description |
---|
ArgumentRequest(java.lang.String argument)
Create a new request
|
ArgumentRequest(java.lang.String argument,
boolean escapeLeadingDash)
Create a new request
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestString()
Get the request String that will be passed to the server
|
boolean |
isResponseExpected()
Is a response expected from the server?
|
getFileForTransmission, modifiesInputStream, modifyInputStream, modifyOutputStream
public ArgumentRequest(java.lang.String argument)
theArgument
- the argument to usepublic ArgumentRequest(java.lang.String argument, boolean escapeLeadingDash)
theArgument
- the argument to useescapeLeadingDash
- true to escape leasding dash in the argument with another "--" Argument request, false otherwisepublic java.lang.String getRequestString()
getRequestString
in class Request
public boolean isResponseExpected()
isResponseExpected
in class Request