Class FtpConfiguration

java.lang.Object
org.apache.camel.component.file.GenericFileConfiguration
org.apache.camel.component.file.remote.RemoteFileConfiguration
org.apache.camel.component.file.remote.FtpConfiguration
Direct Known Subclasses:
FtpsConfiguration

@UriParams public class FtpConfiguration extends RemoteFileConfiguration
FTP configuration
  • Field Details

  • Constructor Details

    • FtpConfiguration

      public FtpConfiguration()
    • FtpConfiguration

      public FtpConfiguration(URI uri)
  • Method Details

    • setDefaultPort

      protected void setDefaultPort()
      Specified by:
      setDefaultPort in class RemoteFileConfiguration
    • getAccount

      public String getAccount()
    • setAccount

      public void setAccount(String account)
      Account to use for login
    • getActivePortRange

      public String getActivePortRange()
    • setActivePortRange

      public void setActivePortRange(String activePortRange)
      Set the client side port range in active mode. The syntax is: minPort-maxPort Both port numbers are inclusive, eg 10000-19999 to include all 1xxxx ports.
    • setChmod

      public void setChmod(String chmod)
      Allows you to set chmod on the stored file. For example chmod=640.
    • getChmod

      public String getChmod()
    • isHandleDirectoryParserAbsoluteResult

      public boolean isHandleDirectoryParserAbsoluteResult()
    • setHandleDirectoryParserAbsoluteResult

      public void setHandleDirectoryParserAbsoluteResult(boolean handleDirectoryParserAbsoluteResult)
      Allows you to set how the consumer will handle subfolders and files in the path if the directory parser results in with absolute paths The reason for this is that some FTP servers may return file names with absolute paths, and if so then the FTP component needs to handle this by converting the returned path into a relative path.