Class Options

  • Direct Known Subclasses:
    ChecksumOptions, RetrieveOptions

    public abstract class Options
    extends java.lang.Object
    Represents FTP command options, as defined in RFC 2389.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String command  
    • Constructor Summary

      Constructors 
      Constructor Description
      Options​(java.lang.String cmd)  
    • Field Detail

      • command

        protected java.lang.String command
    • Constructor Detail

      • Options

        public Options​(java.lang.String cmd)
        Parameters:
        cmd - command whose options are represent by this object
    • Method Detail

      • toFtpCmdArgument

        public java.lang.String toFtpCmdArgument()
      • getArgument

        public abstract java.lang.String getArgument()
        Subclasses should implement this method. It should return the right side of the options line, in the format of OPTS command. It should not include the command name.