public class FTPRequest extends Object
Contains the details of an FTP request
Constructor and Description |
---|
FTPRequest()
Default constructor
|
FTPRequest(int cmd,
String arg)
Class constructor
|
FTPRequest(String cmdLine)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getArgument()
Return the request argument
|
boolean |
hasArgument()
Check if the request has an argument
|
int |
isCommand()
Return the command index
|
protected void |
parseCommandLine(String cmdLine)
Parse a command string
|
int |
setCommandLine(String cmdLine)
Set the command line for the request
|
String |
toString()
Return the FTP request as a string
|
protected void |
updateArgument(String arg)
Update the command argument
|
public FTPRequest()
public FTPRequest(int cmd, String arg)
cmd
- intarg
- Stringpublic FTPRequest(String cmdLine)
cmdLine
- Stringpublic final int isCommand()
public final boolean hasArgument()
public final String getArgument()
public final int setCommandLine(String cmdLine)
cmdLine
- Stringprotected final void parseCommandLine(String cmdLine)
cmdLine
- Stringprotected final void updateArgument(String arg)
arg
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.