Interface ScpEndpointBuilderFactory.ScpEndpointBuilder

All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
Enclosing interface:
ScpEndpointBuilderFactory

public static interface ScpEndpointBuilderFactory.ScpEndpointBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the SCP component.
  • Method Details

    • advanced

    • chmod

      Allows you to set chmod on the stored file. For example chmod=664. The option is a: java.lang.String type. Default: 664 Group: producer
      Parameters:
      chmod - the value to set
      Returns:
      the dsl builder
    • disconnect

      default ScpEndpointBuilderFactory.ScpEndpointBuilder disconnect(boolean disconnect)
      Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop the consumer/route instead. The option is a: boolean type. Default: false Group: common
      Parameters:
      disconnect - the value to set
      Returns:
      the dsl builder
    • disconnect

      default ScpEndpointBuilderFactory.ScpEndpointBuilder disconnect(String disconnect)
      Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop the consumer/route instead. The option will be converted to a boolean type. Default: false Group: common
      Parameters:
      disconnect - the value to set
      Returns:
      the dsl builder
    • checksumFileAlgorithm

      default ScpEndpointBuilderFactory.ScpEndpointBuilder checksumFileAlgorithm(String checksumFileAlgorithm)
      If provided, then Camel will write a checksum file when the original file has been written. The checksum file will contain the checksum created with the provided algorithm for the original file. The checksum file will always be written in the same folder as the original file. The option is a: java.lang.String type. Group: producer
      Parameters:
      checksumFileAlgorithm - the value to set
      Returns:
      the dsl builder
    • fileName

      Use Expression such as File Language to dynamically set the filename. For consumers, it's used as a filename filter. For producers, it's used to evaluate the filename to write. If an expression is set, it take precedence over the CamelFileName header. (Note: The header itself can also be an Expression). The expression options support both String and Expression types. If the expression is a String type, it is always evaluated using the File Language. If the expression is an Expression type, the specified Expression type is used - this allows you, for instance, to use OGNL expressions. For the consumer, you can use it to filter filenames, so you can for instance consume today's file using the File Language syntax: mydata-${date:now:yyyyMMdd}.txt. The producers support the CamelOverruleFileName header which takes precedence over any existing CamelFileName header; the CamelOverruleFileName is a header that is used only once, and makes it easier as this avoids to temporary store CamelFileName and have to restore it afterwards. The option is a: java.lang.String type. Group: producer
      Parameters:
      fileName - the value to set
      Returns:
      the dsl builder
    • flatten

      default ScpEndpointBuilderFactory.ScpEndpointBuilder flatten(boolean flatten)
      Flatten is used to flatten the file name path to strip any leading paths, so it's just the file name. This allows you to consume recursively into sub-directories, but when you eg write the files to another directory they will be written in a single directory. Setting this to true on the producer enforces that any file name in CamelFileName header will be stripped for any leading paths. The option is a: boolean type. Default: false Group: producer
      Parameters:
      flatten - the value to set
      Returns:
      the dsl builder
    • flatten

      Flatten is used to flatten the file name path to strip any leading paths, so it's just the file name. This allows you to consume recursively into sub-directories, but when you eg write the files to another directory they will be written in a single directory. Setting this to true on the producer enforces that any file name in CamelFileName header will be stripped for any leading paths. The option will be converted to a boolean type. Default: false Group: producer
      Parameters:
      flatten - the value to set
      Returns:
      the dsl builder
    • jailStartingDirectory

      default ScpEndpointBuilderFactory.ScpEndpointBuilder jailStartingDirectory(boolean jailStartingDirectory)
      Used for jailing (restricting) writing files to the starting directory (and sub) only. This is enabled by default to not allow Camel to write files to outside directories (to be more secured out of the box). You can turn this off to allow writing files to directories outside the starting directory, such as parent or root folders. The option is a: boolean type. Default: true Group: producer
      Parameters:
      jailStartingDirectory - the value to set
      Returns:
      the dsl builder
    • jailStartingDirectory

      default ScpEndpointBuilderFactory.ScpEndpointBuilder jailStartingDirectory(String jailStartingDirectory)
      Used for jailing (restricting) writing files to the starting directory (and sub) only. This is enabled by default to not allow Camel to write files to outside directories (to be more secured out of the box). You can turn this off to allow writing files to directories outside the starting directory, such as parent or root folders. The option will be converted to a boolean type. Default: true Group: producer
      Parameters:
      jailStartingDirectory - the value to set
      Returns:
      the dsl builder
    • strictHostKeyChecking

      default ScpEndpointBuilderFactory.ScpEndpointBuilder strictHostKeyChecking(String strictHostKeyChecking)
      Sets whether to use strict host key checking. Possible values are: no, yes. The option is a: java.lang.String type. Default: no Group: producer
      Parameters:
      strictHostKeyChecking - the value to set
      Returns:
      the dsl builder
    • knownHostsFile

      default ScpEndpointBuilderFactory.ScpEndpointBuilder knownHostsFile(String knownHostsFile)
      Sets the known_hosts file, so that the jsch endpoint can do host key verification. You can prefix with classpath: to load the file from classpath instead of file system. This option can also be loaded from an existing file, by prefixing with file: or classpath: followed by the location of the file. The option is a: java.lang.String type. Group: security
      Parameters:
      knownHostsFile - the value to set
      Returns:
      the dsl builder
    • password

      Password to use for login. The option is a: java.lang.String type. Group: security
      Parameters:
      password - the value to set
      Returns:
      the dsl builder
    • preferredAuthentications

      default ScpEndpointBuilderFactory.ScpEndpointBuilder preferredAuthentications(String preferredAuthentications)
      Set a comma separated list of authentications that will be used in order of preference. Possible authentication methods are defined by JCraft JSCH. Some examples include: gssapi-with-mic,publickey,keyboard-interactive,password If not specified the JSCH and/or system defaults will be used. The option is a: java.lang.String type. Group: security
      Parameters:
      preferredAuthentications - the value to set
      Returns:
      the dsl builder
    • privateKeyBytes

      default ScpEndpointBuilderFactory.ScpEndpointBuilder privateKeyBytes(byte[] privateKeyBytes)
      Set the private key bytes to that the endpoint can do private key verification. This must be used only if privateKeyFile wasn't set. Otherwise the file will have the priority. The option is a: byte[] type. Group: security
      Parameters:
      privateKeyBytes - the value to set
      Returns:
      the dsl builder
    • privateKeyBytes

      default ScpEndpointBuilderFactory.ScpEndpointBuilder privateKeyBytes(String privateKeyBytes)
      Set the private key bytes to that the endpoint can do private key verification. This must be used only if privateKeyFile wasn't set. Otherwise the file will have the priority. The option will be converted to a byte[] type. Group: security
      Parameters:
      privateKeyBytes - the value to set
      Returns:
      the dsl builder
    • privateKeyFile

      default ScpEndpointBuilderFactory.ScpEndpointBuilder privateKeyFile(String privateKeyFile)
      Set the private key file to that the endpoint can do private key verification. You can prefix with classpath: to load the file from classpath instead of file system. The option is a: java.lang.String type. Group: security
      Parameters:
      privateKeyFile - the value to set
      Returns:
      the dsl builder
    • privateKeyFilePassphrase

      default ScpEndpointBuilderFactory.ScpEndpointBuilder privateKeyFilePassphrase(String privateKeyFilePassphrase)
      Set the private key file passphrase to that the endpoint can do private key verification. The option is a: java.lang.String type. Group: security
      Parameters:
      privateKeyFilePassphrase - the value to set
      Returns:
      the dsl builder
    • username

      Username to use for login. The option is a: java.lang.String type. Group: security
      Parameters:
      username - the value to set
      Returns:
      the dsl builder
    • useUserKnownHostsFile

      default ScpEndpointBuilderFactory.ScpEndpointBuilder useUserKnownHostsFile(boolean useUserKnownHostsFile)
      If knownHostFile has not been explicit configured, then use the host file from System.getProperty(user.home) /.ssh/known_hosts. The option is a: boolean type. Default: true Group: security
      Parameters:
      useUserKnownHostsFile - the value to set
      Returns:
      the dsl builder
    • useUserKnownHostsFile

      default ScpEndpointBuilderFactory.ScpEndpointBuilder useUserKnownHostsFile(String useUserKnownHostsFile)
      If knownHostFile has not been explicit configured, then use the host file from System.getProperty(user.home) /.ssh/known_hosts. The option will be converted to a boolean type. Default: true Group: security
      Parameters:
      useUserKnownHostsFile - the value to set
      Returns:
      the dsl builder