public class Command extends 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 |
Constructor and Description |
---|
Command(String name) |
Command(String name,
String parameters) |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static String |
toString(Command command) |
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(String name, String parameters) throws 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.IllegalArgumentException
public Command(String name) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2016. All rights reserved.