public class Command
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Command |
ABOR |
static Command |
CDUP |
static Command |
EPSV |
static Command |
FEAT |
static Command |
PASV |
static Command |
PWD |
static Command |
QUIT |
static Command |
SPAS |
public static final Command FEAT
public static final Command ABOR
public static final Command CDUP
public static final Command PWD
public static final Command QUIT
public static final Command PASV
public static final Command SPAS
public static final Command EPSV
public Command(java.lang.String name,
java.lang.String parameters)
throws java.lang.IllegalArgumentException
name - the command name, eg. "PUT"parameters - the command parameters; in other words everything that
is contained between the space after the command name and the trailing
Telnet EOL, excluding both the mentioned space and EOL. For instance,
in command "STOR /tmp/file.txt\r\n", the parameters would be:
"/tmp/file.txt"
and trailing EOL.java.lang.IllegalArgumentExceptionpublic Command(java.lang.String name)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static java.lang.String toString(Command command)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013. All Rights Reserved.