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