Class Command


  • public class Command
    extends Object
    Represents an FTP Control Channel Command
    • Constructor Detail

      • Command

        public Command​(String name,
                       String parameters)
                throws IllegalArgumentException
        Parameters:
        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.
        Throws:
        IllegalArgumentException
    • Method Detail

      • toString

        public static String toString​(Command command)
        Returns:
        a String representation of this object, that is <name> <sp> <parameters> <CRLF>